Show quoted text> Am 19.08.2016 um 14:26 schrieb Sawyer X via RT <bug-List-MoreUtils@rt.cpan.org>:
>
> Queue: List-MoreUtils
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=117036 >
>
> On Fri Aug 19 04:25:32 2016, REHSACK wrote:
>> On Fri Aug 19 02:42:30 2016, xsawyerx wrote:
>>> On Fri Aug 19 01:38:42 2016, REHSACK wrote:
>>>> There're 846 passed tests showing that it works in general - so I
>>>> expect there is a local problem on your setup.
>>>>
>>>> Can you please verify whether "." is in your @INC:
>>>>
>>>> $ perl -MDDP -le 'p(@INC)'
>>>> [
>>>> [0] "/foo/perl5/perlbrew/perls/perl-
>>>> 5.24.0/lib/site_perl/5.24.0/darwin-2level",
>>>> [1] "/foo/perl5/perlbrew/perls/perl-
>>>> 5.24.0/lib/site_perl/5.24.0",
>>>> [2] "/foo/perl5/perlbrew/perls/perl-5.24.0/lib/5.24.0/darwin-
>>>> 2level",
>>>> [3] "/foo/perl5/perlbrew/perls/perl-5.24.0/lib/5.24.0",
>>>> [4] "."
>>>> ]
>>>
>>> Ah. Indeed '.' is not in my @INC.
>>
>> I proved 8 Operating Systems as well as a lot of platforms with
>> distributions perl and perlbrewed, "." is always at the end of @INC.
>
> Thank you for quickly pin-pointing what has happened here. It didn't even occur to me! :)
>
>>
>> What's your special case and what is your suggestion to deal with it?
>
> '.' as last implicit entry in @INC has security considerations, so it removed in production here.
I fully agree, but adding a "use lib '.'" isn't that great solution :(
Show quoted text> Take into account that it's likely to be removed (as the last implicit entry in @INC) from core Perl in 5.26.
>
> What would happen if the appropriate loading module would call "use lib '.'". That will always work, even with a changed @INC entry in core, because it puts it at the beginning of @INC explicitly. Will that work?
Technically, yes - but I'm really happy that someone else than me added the security flaw.
When "." will be removed, I rather intend to include the code snippet than adding "." to @INC myself.
Show quoted text> I'll be honest, I'm not sure which that is exactly. inc::latest, maybe?
inc::latest is code by xdg - he proposed using that than writing my own bundler ;)
I agreed - and have no idea regarding the implications. Is there a blead without implicit "." out? Than I can prove how my configure stage will run there. Otherwise I have to build me an sawyer-flavoured-perl-5.24 :P
Cheers
--
Jens Rehsack - rehsack@gmail.com