Commit bd23f063 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Make sure that modified NS file lands in the same spot that batchexp

is putting it (into the archive).
parent 4b7a95e2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group. # Copyright (c) 2000-2006 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
...@@ -1056,8 +1056,9 @@ if (defined($logname)) { ...@@ -1056,8 +1056,9 @@ if (defined($logname)) {
} }
# Always copy the NS file into the archive. # Always copy the NS file into the archive.
system("cp -p $workdir/$eid.ns $userdir/$eid.ns"); system("cp -p $workdir/$eid.ns $userdir/archive/$eid.ns");
libArchive::TBExperimentArchiveAddFile($pid, $eid, "$userdir/$eid.ns") == 0 or libArchive::TBExperimentArchiveAddFile($pid, $eid,
"$userdir/archive/$eid.ns") == 0 or
fatal("Failed to add $userdir/$eid.ns to the archive!"); fatal("Failed to add $userdir/$eid.ns to the archive!");
# #
......
Supports Markdown
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