aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/rm.c2
-rw-r--r--rm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/rm.c b/coreutils/rm.c
index a3542aaf6..768e3ca64 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -112,7 +112,7 @@ extern int rm_main(int argc, char **argv)
}
}
- if ((argc-optind) < 1 && forceFlag == FALSE) {
+ if (argc == optind && forceFlag == FALSE) {
show_usage();
}
#ifdef BB_FEATURE_RM_INTERACTIVE
diff --git a/rm.c b/rm.c
index a3542aaf6..768e3ca64 100644
--- a/rm.c
+++ b/rm.c
@@ -112,7 +112,7 @@ extern int rm_main(int argc, char **argv)
}
}
- if ((argc-optind) < 1 && forceFlag == FALSE) {
+ if (argc == optind && forceFlag == FALSE) {
show_usage();
}
#ifdef BB_FEATURE_RM_INTERACTIVE