Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2001 09:10:08 -0700 (PDT)
From:      Maxime Henrion <mux@qualys.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/26674: rmuser xyz reports incorrect error message if xyz does not exist
Message-ID:  <200104181610.f3IGA8f92699@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/26674; it has been noted by GNATS.

From: Maxime Henrion <mux@qualys.com>
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 <tobez@tobez.org> :-)
 
 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104181610.f3IGA8f92699>