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
a24591db
Commit
a24591db
authored
Feb 06, 2004
by
Leigh B. Stoller
Browse files
Add check to make sure that NS (swapmod) file is a plain file and
accessible.
parent
ecce80e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/swapexp.in
View file @
a24591db
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -187,6 +187,10 @@ if ($inout eq "modify" && @ARGV > 2) {
else
{
die
("
Tainted nsfile name:
$tempnsfile
");
}
if
(
!
-
f
$tempnsfile
||
-
z
$tempnsfile
)
{
die
("
*** $0:
\n
"
.
"
$tempnsfile
does not look like an NS file!
\n
");
}
$modnsfile
=
"
$eid
-modify.ns
";
}
...
...
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