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
+1 -1
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;