Patch from Vladimir to force interactiveFlag=FALSE when forceFlag=TRUE
This commit is contained in:
parent
7c25441792
commit
16f7015722
@ -102,9 +102,6 @@ extern int rm_main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
forceFlag = TRUE;
|
forceFlag = TRUE;
|
||||||
#ifdef BB_FEATURE_RM_INTERACTIVE
|
|
||||||
interactiveFlag = FALSE;
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
#ifdef BB_FEATURE_RM_INTERACTIVE
|
#ifdef BB_FEATURE_RM_INTERACTIVE
|
||||||
@ -122,6 +119,11 @@ extern int rm_main(int argc, char **argv)
|
|||||||
if ((argc-optind) < 1 && forceFlag == FALSE) {
|
if ((argc-optind) < 1 && forceFlag == FALSE) {
|
||||||
show_usage();
|
show_usage();
|
||||||
}
|
}
|
||||||
|
#ifdef BB_FEATURE_RM_INTERACTIVE
|
||||||
|
if (forceFlag == TRUE)
|
||||||
|
interactiveFlag = FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
while (optind < argc) {
|
while (optind < argc) {
|
||||||
srcName = argv[optind];
|
srcName = argv[optind];
|
||||||
|
8
rm.c
8
rm.c
@ -102,9 +102,6 @@ extern int rm_main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
forceFlag = TRUE;
|
forceFlag = TRUE;
|
||||||
#ifdef BB_FEATURE_RM_INTERACTIVE
|
|
||||||
interactiveFlag = FALSE;
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
#ifdef BB_FEATURE_RM_INTERACTIVE
|
#ifdef BB_FEATURE_RM_INTERACTIVE
|
||||||
@ -122,6 +119,11 @@ extern int rm_main(int argc, char **argv)
|
|||||||
if ((argc-optind) < 1 && forceFlag == FALSE) {
|
if ((argc-optind) < 1 && forceFlag == FALSE) {
|
||||||
show_usage();
|
show_usage();
|
||||||
}
|
}
|
||||||
|
#ifdef BB_FEATURE_RM_INTERACTIVE
|
||||||
|
if (forceFlag == TRUE)
|
||||||
|
interactiveFlag = FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
while (optind < argc) {
|
while (optind < argc) {
|
||||||
srcName = argv[optind];
|
srcName = argv[optind];
|
||||||
|
Loading…
Reference in New Issue
Block a user