biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / mail / spamassassin / satest-no-clean-path.patch
blob11f5c31d31e79f0ab111f6d9ea081d13c77060e7
1 diff -ru orig/t/SATest.pm new/t/SATest.pm
2 --- orig/t/SATest.pm 2023-06-25 11:26:27.663204415 +0000
3 +++ new/t/SATest.pm 2023-06-25 11:34:08.902174669 +0000
4 @@ -65,9 +65,12 @@
6 # Clean PATH so taint doesn't complain
7 if (!$RUNNING_ON_WINDOWS) {
8 - $ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
9 + # untaint PATH
10 + $ENV{'PATH'} =~ /^(.+)$/;
11 + $ENV{'PATH'} = $1;
12 + # $ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
13 # Remove tainted envs, at least ENV used in FreeBSD
14 - delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
15 + # delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
16 } else {
17 # Windows might need non-system directories in PATH to run a Perl installation
18 # The best we can do is clean out obviously bad stuff such as relative paths or \..\