From f07463b72cfbadd2bac1d84d91550b9f2228d537 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 5 Jul 2002 06:25:14 +0000 Subject: * 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. --- util/argparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/argparse.c') diff --git a/util/argparse.c b/util/argparse.c index cd518d138..2ca0ff8ff 100644 --- a/util/argparse.c +++ b/util/argparse.c @@ -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; } -- cgit