Commit 21273c58 authored by Mac Newbold's avatar Mac Newbold

Fixed 'require' to 'use' for properly using Exporter lib modules.

parent bb092846
......@@ -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
......
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