This commit is contained in:
Karen Etheridge 2013-04-18 15:29:10 -07:00
parent 67736776a4
commit c3cf4cdfbb

View file

@ -92,7 +92,7 @@ sub new {
sub _set_uid_from_name {
my ( $self, $name ) = @_;
my $uid = getpwnam( $name );
die "Error: Couldn't get uid for non-existant user " . $self->user
die "Error: Couldn't get uid for non-existent user " . $self->user
unless $uid;
$self->trace( "Set UID => $uid" );
$self->uid( $uid );
@ -102,7 +102,7 @@ sub _set_uid_from_name {
sub _set_gid_from_name {
my ( $self, $name ) = @_;
my $gid = getgrnam( $name );
die "Error: Couldn't get gid for non-existant group " . $self->group
die "Error: Couldn't get gid for non-existent group " . $self->group
unless $gid;
$self->trace( "Set GID => $gid" );
$self->gid( $gid );