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
21273c58
Commit
21273c58
authored
Aug 23, 2001
by
Mac Newbold
Browse files
Fixed 'require' to 'use' for properly using Exporter lib modules.
parent
bb092846
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/named_setup.in
View file @
21273c58
...
...
@@ -25,32 +25,26 @@ my $lockfile = "/var/tmp/testbed_named_lockfile";
my
$dbg
=
0
;
my
@row
;
#
# We don't want to run this script unless its the real version.
#
if
(
$EUID
!=
0
)
{
die
("
Must be root! Maybe its a development version?
");
die
("
Must be root! Maybe its a development version?
\n
");
}
# XXX Hacky!
if
(
$TB
ne
"
/usr/testbed
")
{
die
("
Wrong version. Maybe its a development version?
");
die
("
Wrong version. Maybe its a development version?
\n
");
}
# un-taint path
$ENV
{'
PATH
'}
=
'
/bin:/usr/bin:/usr/sbin:/usr/local/bin
';
delete
@ENV
{'
IFS
',
'
CDPATH
',
'
ENV
',
'
BASH_ENV
'};
#
# Turn off line buffering on output
#
$|
=
1
;
#
# Testbed Support libraries
#
push
(
@INC
,
"
$TB
/lib
");
require
libtestbed
;
require
libdb
;
use
lib
"
@prefix
@/lib
";
use
libtestbed
;
use
libdb
;
#
# We need to serialize this script to avoid a trashed map file. Use
...
...
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