diff options
| author | Andreas Schneider <asn@samba.org> | 2019-03-21 16:06:05 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2019-03-21 16:41:33 +0000 |
| commit | 52bf5c25261e343d3c1d4ea1a414ab74cf75d76c (patch) | |
| tree | e17f64b654181dbdb070716a904f17b8ec6e8968 /source3/script | |
| parent | 883436839aeb97b68ca18ae211199faa4448b5a0 (diff) | |
| download | samba-52bf5c25261e343d3c1d4ea1a414ab74cf75d76c.tar.gz samba-52bf5c25261e343d3c1d4ea1a414ab74cf75d76c.tar.bz2 samba-52bf5c25261e343d3c1d4ea1a414ab74cf75d76c.zip | |
s3:script: Fix running cp in modprinter.pl
We need to unset BASH_ENV or we get:
Insecure $ENV{BASH_ENV} while running setgid
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Mar 21 16:41:33 UTC 2019 on sn-devel-144
Diffstat (limited to 'source3/script')
| -rwxr-xr-x | source3/script/tests/printing/modprinter.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/script/tests/printing/modprinter.pl b/source3/script/tests/printing/modprinter.pl index ec1ebcd7ab8..fc71e665451 100755 --- a/source3/script/tests/printing/modprinter.pl +++ b/source3/script/tests/printing/modprinter.pl @@ -131,6 +131,8 @@ if ($opt_delete && ($found_section == 0)) { die "share $share_name not found"; } +delete @ENV{'BASH_ENV'}; + $ENV{'PATH'} = '/bin:/usr/bin'; # untaint PATH system("cp", "$tmp", "$smb_conf_file"); unlink $tmp; |
