Skip to content

Commit

Permalink
(perl #133230) . is no longer in @inc by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz authored and khwilliamson committed Apr 17, 2022
1 parent f992105 commit 96acb8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pod/perlmodlib.PL
Expand Up @@ -204,7 +204,8 @@ double quotes should be used instead of single quotes).
'find { wanted => sub { print canonpath $_ if /\.pm\z/ },
no_chdir => 1 }, @INC'

(The -T is here to prevent '.' from being listed in @INC.)
(The -T is here to prevent @INC from being populated by C<PERL5LIB>,
C<PERLLIB>, and C<PERL_USE_UNSAFE_INC>.)
They should all have their own documentation installed and accessible
via your system man(1) command. If you do not have a B<find>
program, you can use the Perl B<find2perl> program instead, which
Expand Down
4 changes: 2 additions & 2 deletions pod/perlsec.pod
Expand Up @@ -235,8 +235,8 @@ Unix-like environments that support #! and setuid or setgid scripts.)

=head2 Taint mode and @INC

When the taint mode (C<-T>) is in effect, the environment variables
C<PERL5LIB> and C<PERLLIB>
+When the taint mode (C<-T>) is in effect, the environment variables
+C<PERL5LIB>, C<PERLLIB>, and C<PERL_USE_UNSAFE_INC>
are ignored by Perl. You can still adjust C<@INC> from outside the
program by using the C<-I> command line option as explained in
L<perlrun|perlrun/-Idirectory>. The two environment variables are
Expand Down

0 comments on commit 96acb8b

Please sign in to comment.