From: Jim Meyering Date: Sat, 1 Oct 2005 08:01:25 +0000 (+0000) Subject: (main): Don't stop processing arguments upon the first invalid one. X-Git-Tag: v5.91~89 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=157712c3cbf97f9aeb93656cd00dda6d9539a873;p=thirdparty%2Fcoreutils.git (main): Don't stop processing arguments upon the first invalid one. --- diff --git a/src/factor.c b/src/factor.c index f1e5655537..6578a77829 100644 --- a/src/factor.c +++ b/src/factor.c @@ -211,10 +211,10 @@ main (int argc, char **argv) else { int i; + ok = true; for (i = optind; i < argc; i++) if (! print_factors (argv[i])) - usage (EXIT_FAILURE); - ok = true; + ok = false; } exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);