diff options
author | Michael Brantley <limeytexan@gmail.com> | 2018-05-10 06:47:31 -0400 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2018-05-10 16:06:36 +0200 |
commit | d4e71a2321f04b590d58eb2292934214c20a4bca (patch) | |
tree | fc7170a9625f0faeea0f7dafa5fa635e8724260e /pkgs/development/perl-modules/Paranoid-blessed-path.patch | |
parent | 07dc607a8d909e69548e49589f58aa53126e1ce1 (diff) |
perlPackages.Paranoid: init at 2.05
Diffstat (limited to 'pkgs/development/perl-modules/Paranoid-blessed-path.patch')
-rw-r--r-- | pkgs/development/perl-modules/Paranoid-blessed-path.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/Paranoid-blessed-path.patch b/pkgs/development/perl-modules/Paranoid-blessed-path.patch new file mode 100644 index 0000000000000..5e80025011000 --- /dev/null +++ b/pkgs/development/perl-modules/Paranoid-blessed-path.patch @@ -0,0 +1,23 @@ +diff -ru Paranoid-2.05/lib/Paranoid.pm /tmp/Paranoid-2.05/lib/Paranoid.pm +--- Paranoid-2.05/lib/Paranoid.pm 2017-02-06 05:48:57.000000000 -0500 ++++ /tmp/Paranoid-2.05/lib/Paranoid.pm 2018-05-10 06:40:35.286313299 -0400 +@@ -61,7 +61,7 @@ + + my $path = shift; + +- $path = '/bin:/usr/bin' unless defined $path; ++ $path = '__BLESSED_PATH__' unless defined $path; + + delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; + $ENV{PATH} = $path; +Binary files Paranoid-2.05/lib/.Paranoid.pm.swp and /tmp/Paranoid-2.05/lib/.Paranoid.pm.swp differ +diff -ru Paranoid-2.05/t/01_init_core.t /tmp/Paranoid-2.05/t/01_init_core.t +--- Paranoid-2.05/t/01_init_core.t 2016-07-12 04:49:33.000000000 -0400 ++++ /tmp/Paranoid-2.05/t/01_init_core.t 2018-05-10 06:43:41.323183381 -0400 +@@ -35,5 +35,5 @@ + ok( psecureEnv('/bin:/sbin'), 'psecureEnv 1' ); + is( $ENV{PATH}, '/bin:/sbin', 'Validated PATH' ); + ok( psecureEnv(), 'psecureEnv 2' ); +-is( $ENV{PATH}, '/bin:/usr/bin', 'Validated PATH' ); ++is( $ENV{PATH}, '__BLESSED_PATH__', 'Validated PATH' ); + |