683572
From f73351928dfa1d1d564d3f7b8e63c5281ed835ee Mon Sep 17 00:00:00 2001
683572
From: Dave Cross <dave@dave.org.uk>
683572
Date: Tue, 22 Oct 2019 14:24:13 +0100
683572
Subject: [PATCH] Fix taint mode @INC documentation
683572
MIME-Version: 1.0
683572
Content-Type: text/plain; charset=UTF-8
683572
Content-Transfer-Encoding: 8bit
683572
683572
Explain that -T no longer removes '.' from @INC because, since
683572
5.26, '.' isn't in @INC to start with.
683572
683572
Signed-off-by: Petr Písař <ppisar@redhat.com>
683572
---
683572
 pod/perlsec.pod | 8 ++++++--
683572
 1 file changed, 6 insertions(+), 2 deletions(-)
683572
683572
diff --git a/pod/perlsec.pod b/pod/perlsec.pod
683572
index b210445685..0682674143 100644
683572
--- a/pod/perlsec.pod
683572
+++ b/pod/perlsec.pod
683572
@@ -245,8 +245,8 @@ Unix-like environments that support #! and setuid or setgid scripts.)
683572
 
683572
 =head2 Taint mode and @INC
683572
 
683572
-When the taint mode (C<-T>) is in effect, the "." directory is removed
683572
-from C<@INC>, and the environment variables C<PERL5LIB> and C<PERLLIB>
683572
+When the taint mode (C<-T>) is in effect, the environment variables
683572
+C<PERL5LIB> and C<PERLLIB>
683572
 are ignored by Perl.  You can still adjust C<@INC> from outside the
683572
 program by using the C<-I> command line option as explained in
683572
 L<perlrun>.  The two environment variables are ignored because
683572
@@ -268,6 +268,10 @@ problem will be reported:
683572
 
683572
   Insecure dependency in require while running with -T switch
683572
 
683572
+On versions of Perl before 5.26, activating taint mode will also remove
683572
+the current directory (".") from C<@INC>. Since version 5.26, the
683572
+current directory isn't included in C<@INC>.
683572
+
683572
 =head2 Cleaning Up Your Path
683572
 
683572
 For "Insecure C<$ENV{PATH}>" messages, you need to set C<$ENV{'PATH'}> to
683572
-- 
683572
2.21.0
683572