Subject: Re: bin/21146: useradd --help
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 04/14/2003 10:55:25
> >Synopsis:       useradd has left the password file locked.

The 'current' useradd reports:
# userdel --help
userdel: unknown option -- -
userdel: unknown option -- h
userdel: unknown option -- e
userdel: unknown option -- l
userdel: option requires an argument -- p
Usage: userdel -D [-p preserve]
Usage: userdel [-p preserve] [-r] [-v] user

and doesn't lock the password file.

I've just fixed it to report the usage on an unknown option.

I suspect that --help was escaping through libc's broken getopt() code in 1.6

Dunno what locked the pw file.

	David

-- 
David Laight: david@l8s.co.uk