mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-24 20:11:06 +01:00
* argparse.c (initialize): We better exit after a read error so
that we don't run into an endless loop when reading a directory. Noted by Andrew Suffield.
This commit is contained in:
parent
32b11e4501
commit
f07463b72c
@ -1,3 +1,9 @@
|
||||
2002-07-05 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* argparse.c (initialize): We better exit after a read error so
|
||||
that we don't run into an endless loop when reading a directory.
|
||||
Noted by Andrew Suffield.
|
||||
|
||||
2002-07-01 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* argparse.c (optfile_parse): Fix variable typo - 'p2' should be
|
||||
|
@ -192,7 +192,7 @@ initialize( ARGPARSE_ARGS *arg, const char *filename, unsigned *lineno )
|
||||
s = "Invalid option \"%.50s\"\n";
|
||||
log_error(s, arg->internal.last? arg->internal.last:"[??]" );
|
||||
}
|
||||
if( arg->err != 1 )
|
||||
if( arg->err != 1 || arg->r_opt == -5 )
|
||||
exit(2);
|
||||
arg->err = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user