Commit 02bb253d authored by Mac Newbold's avatar Mac Newbold
Browse files

Was broken for relative paths (chdir before cp). Fixed now.

parent cbef1269
...@@ -77,13 +77,13 @@ $dirname = "/tmp/parse-$$"; ...@@ -77,13 +77,13 @@ $dirname = "/tmp/parse-$$";
mkdir($dirname, 0775) or mkdir($dirname, 0775) or
fatal("Could not mkdir $dirname"); fatal("Could not mkdir $dirname");
chdir($dirname) or if (system("/bin/cp", "$tempfile", "$dirname/$nsfile")) {
fatal("Could not chdir to $dirname");
if (system("/bin/cp", "$tempfile", "$nsfile")) {
fatal("Could not copy $tempfile to $dirname"); fatal("Could not copy $tempfile to $dirname");
} }
chdir($dirname) or
fatal("Could not chdir to $dirname");
# Run parse in impotent mode on the NS file. This has no effect but # Run parse in impotent mode on the NS file. This has no effect but
# will display any errors. # will display any errors.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment