Skip to content
GitLab
Menu
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
ab2b2030
Commit
ab2b2030
authored
May 09, 2012
by
Leigh B Stoller
Browse files
Fix to previous revision; a typically nonsensical taint check problem.
parent
145246c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/xmlrpc/Genixmlrpc.pm.in
View file @
ab2b2030
...
...
@@ -30,17 +30,6 @@ my $timeout = 500;
#
my $PACKAGE_VERSION = 0.1;
# Version of FreeBSD.
my $FBSD_MAJOR = 4;
my $FBSD_MINOR = 10;
if (`uname -r` =~ /^(\d+)\.(\d+)/) {
$FBSD_MAJOR = $1;
$FBSD_MINOR = $2;
}
else {
die("Could not determine what version of FreeBSD you are running!\n");
}
#
# This is the "structure" returned by the RPC server. It gets converted into
# a perl hash by the unmarshaller, and we return that directly to the caller
...
...
@@ -162,6 +151,18 @@ sub CallMethod($$$@)
"Must provide an rpc context");
}
my $FBSD_MAJOR = 4;
my $FBSD_MINOR = 10;
if (`/usr/bin/uname -r` =~ /^(\d+)\.(\d+)/) {
$FBSD_MAJOR = $1;
$FBSD_MINOR = $2;
}
else {
print STDERR
"Could not determine what version of FreeBSD you are running!\n";
return undef;
}
if ($FBSD_MAJOR >= 9) {
require LWP::UserAgent;
require IO::Socket::SSL;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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