Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
ab5955d6
Commit
ab5955d6
authored
Nov 30, 2006
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try a different fix. Sheesh.
parent
24a62c11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tbsetup/libtestbed.pm.in
tbsetup/libtestbed.pm.in
+4
-4
No files found.
tbsetup/libtestbed.pm.in
View file @
ab5955d6
...
...
@@ -104,8 +104,8 @@ sub SENDMAIL($$$;$$@)
#
# Untaint the path locally. Note that using a "local" fails on older perl!
#
my
%
SAVE_
ENV
=
%
ENV;
$ENV{PATH} = "/bin:/usr/bin";
my
$
SAVE_
PATH
=
$
ENV
{'
PATH
'}
;
$ENV{
'
PATH
'
} = "/bin:/usr/bin";
delete @ENV{'
IFS
', '
CDPATH
', '
ENV
', '
BASH_ENV
'};
if (! open(MAIL, "|/usr/sbin/sendmail -t")) {
...
...
@@ -149,11 +149,11 @@ sub SENDMAIL($$$;$$@)
print STDERR "SENDMAIL: Could not finish sendmail: $!\n";
goto bad;
}
%
ENV =
%
SAVE_
ENV
;
$
ENV
{'
PATH
'}
=
$
SAVE_
PATH
;
return 1;
bad:
%
ENV =
%
SAVE_
ENV
;
$
ENV
{'
PATH
'}
=
$
SAVE_
PATH
;
return 0;
}
...
...
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