diff options
author | 2001-05-02 13:30:42 +0000 | |
---|---|---|
committer | 2001-05-02 13:30:42 +0000 | |
commit | 89a0871960b1a8b79124312f790b15a675fc8e25 (patch) | |
tree | 93ef2c12a9f049b3852f975698a7e6f31fb37c11 /adduser/rmuser.perl | |
parent | ac46304ba73e5c8781f933fc724dd415939acb4b (diff) | |
download | pw-darwin-89a0871960b1a8b79124312f790b15a675fc8e25.tar.gz pw-darwin-89a0871960b1a8b79124312f790b15a675fc8e25.tar.zst pw-darwin-89a0871960b1a8b79124312f790b15a675fc8e25.zip |
Fix the rmuser script to correctly determine if a user does not exist.
PR: 26674
Diffstat (limited to 'adduser/rmuser.perl')
-rw-r--r-- | adduser/rmuser.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adduser/rmuser.perl b/adduser/rmuser.perl index 07ba499..d35a453 100644 --- a/adduser/rmuser.perl +++ b/adduser/rmuser.perl @@ -120,7 +120,7 @@ if ($#ARGV == 0) { ($name, $password, $uid, $gid, $change, $class, $gecos, $home_dir, $shell) = (getpwnam("$login_name")); -if ($?) { +if (!defined $uid) { print STDERR "${whoami}: Error: User ${login_name} not in password database\n"; &unlockpw; exit 1; |