diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-05-31 14:46:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-05-31 14:46:16 -0400 |
commit | 0353882a6608c8cce4a3395f45b47534991d43df (patch) | |
tree | 7aafa168ece46f7951fae78813ac1e97bbfa0ec8 /ikiwiki-mass-rebuild | |
parent | cc26a499253b5a0458924992f70678b81811ec70 (diff) | |
download | ikiwiki-0353882a6608c8cce4a3395f45b47534991d43df.tar ikiwiki-0353882a6608c8cce4a3395f45b47534991d43df.tar.gz |
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.
Diffstat (limited to 'ikiwiki-mass-rebuild')
-rwxr-xr-x | ikiwiki-mass-rebuild | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ikiwiki-mass-rebuild b/ikiwiki-mass-rebuild index 0057beb4f..b40eb0b3b 100755 --- a/ikiwiki-mass-rebuild +++ b/ikiwiki-mass-rebuild @@ -34,9 +34,7 @@ sub processline { if (! $pid) { my ($uuid, $ugid) = (getpwnam($user))[2, 3]; my $grouplist=join(" ", $ugid, $ugid, supplemental_groups($user)); - undef $!; - $)=$grouplist; - if ($!) { + if (($)=$grouplist) ne $grouplist) { die "failed to set egid $grouplist: $!"; } $(=$ugid; |