[Pkg-shadow-devel] Bug#410268: passwd: check for extra arguments

Justin Pryzby justinpryzby at users.sourceforge.net
Fri Feb 9 02:29:56 CET 2007


Package: passwd

$ sudo passwd -S root daemon |wc -l
1

Passwd should test that exactly one non-option argument is given, unless
-a (or -h?) is given, in which case no non-option arguments are given.
If not, set $? -ne 0.

passwd -l foo bar returns 0 but hasn't locked bar.




More information about the Pkg-shadow-devel mailing list