ikiwiki-mass-rebuild: Don't trust $! when setting $)
A better fix, just check that what $) returns is what it was asked to set, and ignore $! entirely.master
parent
cc26a49925
commit
0353882a66
|
@ -1,7 +1,7 @@
|
||||||
ikiwiki (2.49) UNRELEASED; urgency=low
|
ikiwiki (2.49) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* haiku: Generate valid xhtml.
|
* haiku: Generate valid xhtml.
|
||||||
* ikiwiki-mass-rebuild: under $! before setting $) to avoid strange errno issue
|
* ikiwiki-mass-rebuild: Don't trust $! when setting $)
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Fri, 30 May 2008 19:08:54 -0400
|
-- Joey Hess <joeyh@debian.org> Fri, 30 May 2008 19:08:54 -0400
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,7 @@ sub processline {
|
||||||
if (! $pid) {
|
if (! $pid) {
|
||||||
my ($uuid, $ugid) = (getpwnam($user))[2, 3];
|
my ($uuid, $ugid) = (getpwnam($user))[2, 3];
|
||||||
my $grouplist=join(" ", $ugid, $ugid, supplemental_groups($user));
|
my $grouplist=join(" ", $ugid, $ugid, supplemental_groups($user));
|
||||||
undef $!;
|
if (($)=$grouplist) ne $grouplist) {
|
||||||
$)=$grouplist;
|
|
||||||
if ($!) {
|
|
||||||
die "failed to set egid $grouplist: $!";
|
die "failed to set egid $grouplist: $!";
|
||||||
}
|
}
|
||||||
$(=$ugid;
|
$(=$ugid;
|
||||||
|
|
Loading…
Reference in New Issue