diff options
| author | Doug Barton <dougb@FreeBSD.org> | 2000-12-17 23:42:45 +0000 |
|---|---|---|
| committer | Doug Barton <dougb@FreeBSD.org> | 2000-12-17 23:42:45 +0000 |
| commit | 6fce744ee340ce56c46936d097c5b07084699e8d (patch) | |
| tree | 71dc074dd41645946cc510acd3d5943410df2dcc /usr.sbin | |
| parent | 8f38f3b2e60e7217901da5e879bbfc01a3eaeace (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/adduser/rmuser.perl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/adduser/rmuser.perl b/usr.sbin/adduser/rmuser.perl index b3f140697083..c5c9b7486fc8 100644 --- a/usr.sbin/adduser/rmuser.perl +++ b/usr.sbin/adduser/rmuser.perl @@ -117,7 +117,8 @@ if ($#ARGV == 0) { $login_name = &get_login_name; } -($name, $password, $uid, $gid, $change, $class, $gecos, $home_dir, $shell) = (getpwnam("$login_name")); +($name, $password, $uid, $gid, $change, $class, $gecos, $home_dir, $shell) = + (getpwnam("$login_name")); if ($?) { print STDERR "${whoami}: Error: User ${login_name} not in password database\n"; @@ -316,7 +317,7 @@ sub update_passwd_file { print STDERR "\n${whoami}: Warning: couldn't set mode of $new_passwd_file to 0600 ($!)\n\tcontinuing, but please check mode of /etc/master.passwd!\n"; $skipped = 0; while (<MASTER_PW>) { - if (not /^$login_name\:/io) { + if (not /^\Q$login_name:/io) { print NEW_PW; } else { print STDERR "Dropped entry for $login_name\n" if $debug; |
