From owner-freebsd-bugs Wed Apr 18 9:10:16 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7343937B422 for ; Wed, 18 Apr 2001 09:10:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3IGA8f92699; Wed, 18 Apr 2001 09:10:08 -0700 (PDT) (envelope-from gnats) Date: Wed, 18 Apr 2001 09:10:08 -0700 (PDT) Message-Id: <200104181610.f3IGA8f92699@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Maxime Henrion Subject: Re: bin/26674: rmuser xyz reports incorrect error message if xyz does not exist Reply-To: Maxime Henrion Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/26674; it has been noted by GNATS. From: Maxime Henrion To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/26674: rmuser xyz reports incorrect error message if xyz does not exist Date: Wed, 18 Apr 2001 18:08:26 +0200 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here is the patch. Thanks to Anton Berezin :-) mux -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code Key fingerprint = F9B6 1D5A 4963 331C 88FC CA6A AB50 1EF2 8CBE 99D6 Public Key : http://www.epita.fr/~henrio_m/ --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rmuser.diff" *** /usr/src/usr.sbin/adduser/rmuser.perl Sun Jan 14 11:21:11 2001 --- src/rmuser.perl Wed Apr 18 18:02:17 2001 *************** *** 120,126 **** ($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"; &unlockpw; exit 1; --- 120,126 ---- ($name, $password, $uid, $gid, $change, $class, $gecos, $home_dir, $shell) = (getpwnam("$login_name")); ! if (!defined $uid) { print STDERR "${whoami}: Error: User ${login_name} not in password database\n"; &unlockpw; exit 1; --7AUc2qLy4jB3hD7Z-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message