summaryrefslogtreecommitdiff
path: root/src/factor.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-10-01 08:01:25 +0000
committerJim Meyering <jim@meyering.net>2005-10-01 08:01:25 +0000
commit157712c3cbf97f9aeb93656cd00dda6d9539a873 (patch)
tree091be114ea8229bdb0a7a79a3f3ef97ba6d8b912 /src/factor.c
parent5664caead18ff04a713473adad0c27d5636a82a8 (diff)
downloadcoreutils-157712c3cbf97f9aeb93656cd00dda6d9539a873.tar.xz
(main): Don't stop processing arguments upon the first invalid one.
Diffstat (limited to 'src/factor.c')
-rw-r--r--src/factor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/factor.c b/src/factor.c
index f1e565553..6578a7782 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);