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

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

parent cbef1269
......@@ -77,13 +77,13 @@ $dirname = "/tmp/parse-$$";
mkdir($dirname, 0775) or
fatal("Could not mkdir $dirname");
chdir($dirname) or
fatal("Could not chdir to $dirname");
if (system("/bin/cp", "$tempfile", "$nsfile")) {
if (system("/bin/cp", "$tempfile", "$dirname/$nsfile")) {
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
# 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