Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / perl-modules / Paranoid-blessed-path.patch
blob99bd69730741a1529f2a99b1347af50a55b44b1d
1 diff '--color=auto' -ur Paranoid-2.10/lib/Paranoid.pm Paranoid-2.10-patched/lib/Paranoid.pm
2 --- Paranoid-2.10/lib/Paranoid.pm 2022-03-08 10:01:04.000000000 +0100
3 +++ Paranoid-2.10-patched/lib/Paranoid.pm 2023-10-20 16:57:54.025754755 +0200
4 @@ -47,7 +47,7 @@
5 %EXPORT_TAGS = ( all => [@EXPORT_OK], );
7 use constant PTRUE_ZERO => '0 but true';
8 -use constant DEFAULT_PATH => '/bin:/sbin:/usr/bin:/usr/sbin';
9 +use constant DEFAULT_PATH => '__BLESSED_PATH__';
11 #####################################################################
13 diff '--color=auto' -ur Paranoid-2.10/t/01_init_core.t Paranoid-2.10-patched/t/01_init_core.t
14 --- Paranoid-2.10/t/01_init_core.t 2022-01-24 10:30:20.000000000 +0100
15 +++ Paranoid-2.10-patched/t/01_init_core.t 2023-10-20 16:58:16.856288407 +0200
16 @@ -35,5 +35,4 @@
17 ok( psecureEnv('/bin:/sbin'), 'psecureEnv 1' );
18 is( $ENV{PATH}, '/bin:/sbin', 'Validated PATH' );
19 ok( psecureEnv(), 'psecureEnv 2' );
20 -is( $ENV{PATH}, '/bin:/sbin:/usr/bin:/usr/sbin', 'Validated PATH' );
22 +is( $ENV{PATH}, '__BLESSED_PATH__', 'Validated PATH' );