Fix the rmuser script to correctly determine if a user does not exist.

PR: 26674
This commit is contained in:
Adrian Chadd 2001-05-02 13:30:42 +00:00
parent aa96491de1
commit 127826924a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76207

View file

@ -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;