Vladimir's patch to reverse previous patch
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 11 Apr 2001 17:20:44 +0000 (17:20 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 11 Apr 2001 17:20:44 +0000 (17:20 -0000)
coreutils/rm.c
rm.c

index 768e3ca64c537bee16591f845c11f7715ef28df1..ea7f86ce100bfe7309a4b954e997cb480e936011 100644 (file)
@@ -101,12 +101,17 @@ extern int rm_main(int argc, char **argv)
                                break;
                        case 'f':
                                forceFlag = TRUE;
+#ifdef BB_FEATURE_RM_INTERACTIVE
+
+                               interactiveFlag = FALSE;
+#endif
                                break;
 #ifdef BB_FEATURE_RM_INTERACTIVE
                        case 'i':
                                interactiveFlag = TRUE;
-#endif
+                               forceFlag = FALSE;
                                break;
+#endif
                        default:
                                show_usage();
                }
@@ -115,11 +120,6 @@ extern int rm_main(int argc, char **argv)
        if (argc == optind && forceFlag == FALSE) {
                show_usage();
        }
-#ifdef BB_FEATURE_RM_INTERACTIVE
-       if (forceFlag == TRUE)
-               interactiveFlag = FALSE;
-#endif
-
 
        while (optind < argc) {
                srcName = argv[optind];
diff --git a/rm.c b/rm.c
index 768e3ca64c537bee16591f845c11f7715ef28df1..ea7f86ce100bfe7309a4b954e997cb480e936011 100644 (file)
--- a/rm.c
+++ b/rm.c
@@ -101,12 +101,17 @@ extern int rm_main(int argc, char **argv)
                                break;
                        case 'f':
                                forceFlag = TRUE;
+#ifdef BB_FEATURE_RM_INTERACTIVE
+
+                               interactiveFlag = FALSE;
+#endif
                                break;
 #ifdef BB_FEATURE_RM_INTERACTIVE
                        case 'i':
                                interactiveFlag = TRUE;
-#endif
+                               forceFlag = FALSE;
                                break;
+#endif
                        default:
                                show_usage();
                }
@@ -115,11 +120,6 @@ extern int rm_main(int argc, char **argv)
        if (argc == optind && forceFlag == FALSE) {
                show_usage();
        }
-#ifdef BB_FEATURE_RM_INTERACTIVE
-       if (forceFlag == TRUE)
-               interactiveFlag = FALSE;
-#endif
-
 
        while (optind < argc) {
                srcName = argv[optind];