summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-31 13:37:08 +0000
committerJim Meyering <jim@meyering.net>2003-01-31 13:37:08 +0000
commitd85b93c0fb91e0f3d887830a4d6b206da3325b54 (patch)
tree3b69cfaa0653823c0d443fce1ef0246bc10eac05 /src
parent4bee27ae43e6aa07aa0069ae39cb1c8a2b2cfcfd (diff)
downloadcoreutils-d85b93c0fb91e0f3d887830a4d6b206da3325b54.tar.xz
ditto for invalid options
Diffstat (limited to 'src')
-rw-r--r--src/du.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/du.c b/src/du.c
index c132ae7ea..7fe4746d4 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)
{