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