getting some screwy messages about chdir from perl.
authorFred T. Hamster <fred@gruntose.com>
Mon, 26 Aug 2013 06:57:16 +0000 (02:57 -0400)
committerFred T. Hamster <fred@gruntose.com>
Mon, 26 Aug 2013 06:57:16 +0000 (02:57 -0400)
scripts/archival/shared_snarfer.pl

index 6d157163f097f615784d0b0f4019181151c56460..c6b9491071892868fa9c4a1beeca8e8f811345b2 100644 (file)
@@ -129,7 +129,9 @@ sub chdir_to_top {
     # magic to get the paths to work right.
     local($drive) = substr($directory, 0, 4);  # get just drive letter biz.
 #print "going to change to $drive\n";
-    chdir($drive);
+    if (length($drive) > 0) {
+      chdir($drive);
+    }
 #print "cwd now=" . cwd() . "\n";
     $directory = substr($directory, 4);  # rip off absolutist path.
 #print "using dir now as $directory\n";