[Adduser-devel] argh
Stephen Gran
sgran at debian.org
Wed Apr 26 10:55:58 UTC 2006
This one time, at band camp, Marc Haber said:
> On Thu, Mar 09, 2006 at 10:32:59PM +0000, Stephen Gran wrote:
> > # Parse options, sanity checks
> > +exit 1 unless (
> > GetOptions ("quiet" => sub { $verbose = 0 },
> > "force-badname" => \$allow_badname,
> > "help|h" => sub { &usage(); exit 0 },
> > @@ -92,10 +93,10 @@
> > "gid=i" => \$new_gid,
> > "conf=s" => \$configfile,
> > "no-create-home" => \$no_create_home,
> > - "debug" => sub { $verbose = 2 } );
> > + "debug" => sub { $verbose = 2 } ) );
>
> Doesn't this cause adduser to exit silently without error message in
> case of a misparse?
The Getopt routine should error with "unknown option: $option".
I will run some further tests to be sure.
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : sgran at debian.org |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060426/3167aaea/attachment.pgp
More information about the Adduser-devel
mailing list