develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134195] [PATCH] setgroups() regression in perl 5.30

Thread Next
From:
Tony Cook via RT
Date:
June 16, 2019 23:33
Subject:
[perl #134195] [PATCH] setgroups() regression in perl 5.30
Message ID:
rt-4.0.24-4937-1560727969-1312.134195-15-0@perl.org
On Fri, 14 Jun 2019 19:08:00 -0700, hv wrote:
> On Fri, 14 Jun 2019 15:10:01 -0700, jkeenan wrote:
> > Operation not permitted
> 
> You need to be root, or otherwise privileged.
> 
> As root, I can reproduce it here:
> # /opt/v5.28.1/bin/perl -wle '$) = "2 2"; print $!; print $)'
> 
> 2 2
> # /opt/v5.30.0/bin/perl -wle '$) = "2 2"; print $!; print $)'
> Invalid argument
> 2 0
> #
> 
> Of course that makes it difficult to spot bugs like this from the
> testsuite. :(

I wonder if it's worth splitting out the parsing into a non-API (but still exported) function that we can test in XS::APItest.

Tony



---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=134195

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About