s3:script: Try to fix a Perl warning
authorAndreas Schneider <asn@samba.org>
Tue, 26 Nov 2019 07:21:27 +0000 (08:21 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 19 Dec 2019 14:20:41 +0000 (14:20 +0000)
Scalar value @ENV{"BASH_ENV"} better written as $ENV{"BASH_ENV"} at
/tmp/samba-testbase/b23/samba-ad-dc-1/source3/script/tests/printing/modprinter.pl
line 134.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/script/tests/printing/modprinter.pl

index fc71e665451af09b353146ae29df0a27aa235547..28817dbd284b5e71fec04f973db7d494cf2070c8 100755 (executable)
@@ -131,7 +131,7 @@ if ($opt_delete && ($found_section == 0)) {
        die "share $share_name not found";
 }
 
-delete @ENV{'BASH_ENV'};
+delete @ENV{"BASH_ENV"};
 
 $ENV{'PATH'} = '/bin:/usr/bin'; # untaint PATH
 system("cp", "$tmp", "$smb_conf_file");