Fix the rmuser script to correctly determine if a user does not exist.
PR: 26674
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user