Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a12df9b3
Commit
a12df9b3
authored
May 30, 2006
by
Leigh B. Stoller
Browse files
Add -f option to copy commands to avoid perm errors.
parent
16894299
Changes
2
Hide whitespace changes
Inline
Side-by-side
tbsetup/batchexp.in
View file @
a12df9b3
...
...
@@ -714,15 +714,15 @@ if (! -e "$archivedir/nsdata") {
or
fatal
("
Failed to mkdir
$archivedir
/nsdata
");
}
system
("
cp -p
$workdir
/
$nsfile
$archivedir
/nsdata/nsfile.ns
")
==
0
system
("
cp -
f
p
$workdir
/
$nsfile
$archivedir
/nsdata/nsfile.ns
")
==
0
or
fatal
("
Failed to copy nsfile to
$archivedir
/tbdata
");
if
(
defined
(
$logname
))
{
system
("
cp -p
$logname
$archivedir
/tbdata/log.batchexp
")
==
0
system
("
cp -
f
p
$logname
$archivedir
/tbdata/log.batchexp
")
==
0
or
fatal
("
Failed to copy logfile to
$archivedir
/tbdata
");
}
system
("
cp -p
$workdir
/
$repfile
$archivedir
/tbdata/tbreport.batchexp
")
==
0
system
("
cp -
f
p
$workdir
/
$repfile
$archivedir
/tbdata/tbreport.batchexp
")
==
0
or
fatal
("
Failed to copy nsfile to
$archivedir
/tbdata
");
# And tell the archive library about the above files.
...
...
tbsetup/swapexp.in
View file @
a12df9b3
...
...
@@ -1098,17 +1098,17 @@ if (! -e "$archivedir/nsdata") {
}
if
(
$inout
eq
"
modify
")
{
system
("
cp -p
$workdir
/
$eid
.ns
$archivedir
/nsdata/nsfile.ns
")
==
0
system
("
cp -
f
p
$workdir
/
$eid
.ns
$archivedir
/nsdata/nsfile.ns
")
==
0
or
fatal
("
Failed to copy nsfile to
$archivedir
/tbdata
");
}
if
(
defined
(
$logname
))
{
system
("
cp -p
$logname
$archivedir
/tbdata/log.
$tag
")
==
0
system
("
cp -
f
p
$logname
$archivedir
/tbdata/log.
$tag
")
==
0
or
fatal
("
Failed to copy logfile to
$archivedir
/tbdata
");
}
if
(
-
e
$repfile
)
{
system
("
cp -p
$workdir
/
$repfile
$archivedir
/tbdata/tbreport.
$tag
")
==
0
system
("
cp -
f
p
$workdir
/
$repfile
$archivedir
/tbdata/tbreport.
$tag
")
==
0
or
fatal
("
Failed to copy nsfile to
$archivedir
/tbdata
");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment