mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Fix the rmuser script to correctly determine if a user does not exist.
PR: 26674
This commit is contained in:
parent
aa96491de1
commit
127826924a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76207
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue