1
0
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:
Werner Koch 2002-07-05 06:25:14 +00:00
parent 32b11e4501
commit f07463b72c
2 changed files with 7 additions and 1 deletions

View File

@ -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> 2002-07-01 David Shaw <dshaw@jabberwocky.com>
* argparse.c (optfile_parse): Fix variable typo - 'p2' should be * argparse.c (optfile_parse): Fix variable typo - 'p2' should be

View File

@ -192,7 +192,7 @@ initialize( ARGPARSE_ARGS *arg, const char *filename, unsigned *lineno )
s = "Invalid option \"%.50s\"\n"; s = "Invalid option \"%.50s\"\n";
log_error(s, arg->internal.last? arg->internal.last:"[??]" ); log_error(s, arg->internal.last? arg->internal.last:"[??]" );
} }
if( arg->err != 1 ) if( arg->err != 1 || arg->r_opt == -5 )
exit(2); exit(2);
arg->err = 0; arg->err = 0;
} }