argp-parse.c: ARGP_PARSE_ARGV0 shouldn't be ignored

Gordon Matzigkeit gord@fig.org
Sat Jul 25 21:57:00 GMT 1998


Hi!

The current implementation of argp-parse.c makes ARGP_PARSE_ARGV0 do
nothing unless ARGP_NO_ERRS is specified.  This is undocumented, and I
don't know what a proper fix is, but the attached patch at least
returns an error code rather failing silently.

1998-07-24  Gordon Matzigkeit  <gord@fig.org>

	* argp-parse.c (parser_init): Return ENOSYS if they specify
	ARGP_PARSE_ARGV0 without ARGP_NO_ERRS, rather than silently
	ignoring it.

Thanks,

-- 
 Gordon Matzigkeit <gord@fig.org> //\ I'm a FIG ( http://www.fig.org/ )
    Lovers of freedom, unite!     \// I use GNU ( http://www.gnu.org/ )


More information about the Libc-alpha mailing list