Skip to content

Commit

Permalink
Allow uid and gid of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
andk committed Jun 5, 2017
1 parent 7690435 commit 3c5e55e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PAUSE/pmfile.pm
Expand Up @@ -456,10 +456,10 @@ sub parse_version {
} else {
$self->connect->{InactiveDestroy} = 1;
my($gnam,$gpw,$gid,$gmem) = getgrnam($PAUSE::Config->{ML_CHOWN_GROUP});
die "Could not determine GID of $PAUSE::Config->{ML_CHOWN_GROUP}" unless $gid;
die "Could not determine GID of $PAUSE::Config->{ML_CHOWN_GROUP}" unless defined $gid;
my($uname,$upw,$uid,$ugid,$q,$c,$gcos,$udir,$ushell) =
getpwnam($PAUSE::Config->{ML_CHOWN_USER});
die "Could not determine UID of $PAUSE::Config->{ML_CHOWN_USER}" unless $uid;
die "Could not determine UID of $PAUSE::Config->{ML_CHOWN_USER}" unless defined $uid;
$( = $gid; $) = "$gid $gid";
$< = $> = $uid;
Expand Down

0 comments on commit 3c5e55e

Please sign in to comment.