summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rm.c b/src/rm.c
index bc80e690a..57fefdec5 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -191,7 +191,7 @@ main (int argc, char **argv)
}
}
- if (optind == argc)
+ if (argc <= optind)
{
if (x.ignore_missing_files)
exit (EXIT_SUCCESS);