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

[perl #134169] 5.30.0 - Unable to set supplementary group IDs

From:
Tony Cook via RT
Date:
July 11, 2019 01:04
Subject:
[perl #134169] 5.30.0 - Unable to set supplementary group IDs
Message ID:
rt-4.0.24-5800-1562807071-719.134169-15-0@perl.org
On Sun, 16 Jun 2019 16:32:49 -0700, tonyc wrote:
> 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.

Something like the attached.

Tony


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



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