From: Jim Meyering Date: Fri, 31 Jan 2003 13:37:08 +0000 (+0000) Subject: ditto for invalid options X-Git-Tag: v4.5.5~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d85b93c0fb91e0f3d887830a4d6b206da3325b54;p=thirdparty%2Fcoreutils.git ditto for invalid options --- diff --git a/src/du.c b/src/du.c index c132ae7eaf..7fe4746d4b 100644 --- a/src/du.c +++ b/src/du.c @@ -665,12 +665,12 @@ main (int argc, char **argv) case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); default: - usage (EXIT_FAILURE); + fail = 1; } } if (fail) - exit (EXIT_FAILURE); + usage (EXIT_FAILURE); if (opt_all && opt_summarize_only) {