Patch from Vladimir to force interactiveFlag=FALSE when forceFlag=TRUE
diff --git a/coreutils/rm.c b/coreutils/rm.c
index 96808ae..013f3ee 100644
--- a/coreutils/rm.c
+++ b/coreutils/rm.c
@@ -102,9 +102,6 @@
break;
case 'f':
forceFlag = TRUE;
-#ifdef BB_FEATURE_RM_INTERACTIVE
- interactiveFlag = FALSE;
-#endif
break;
case 'i':
#ifdef BB_FEATURE_RM_INTERACTIVE
@@ -122,6 +119,11 @@
if ((argc-optind) < 1 && forceFlag == FALSE) {
show_usage();
}
+#ifdef BB_FEATURE_RM_INTERACTIVE
+ if (forceFlag == TRUE)
+ interactiveFlag = FALSE;
+#endif
+
while (optind < argc) {
srcName = argv[optind];