This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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/)

argp-silentfail.diff

Copyright (C) 1998 FIG; the creator offers you this gift and wants it to
remain free.  See http://www.fig.org/freedom.html for details.
  This work may be copied, modified and distributed under the GNU General
  Public License (GPL).  See http://www.gnu.org/copyleft/gpl.html.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]