Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/rmdir.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/coreutils/rmdir.c
r3232 r3621 32 32 33 33 #define PARENTS (1 << 0) 34 //efine VERBOSE (1 << 1) //accepted but ignored 34 #define VERBOSE ((1 << 1) * ENABLE_FEATURE_VERBOSE) 35 35 #define IGNORE_NON_EMPTY (1 << 2) 36 36 … … 45 45 static const char rmdir_longopts[] ALIGN1 = 46 46 "parents\0" No_argument "p" 47 "verbose\0" No_argument "v"48 47 /* Debian etch: many packages fail to be purged or installed 49 48 * because they desperately want this option: */ 50 49 "ignore-fail-on-non-empty\0" No_argument "\xff" 50 IF_FEATURE_VERBOSE( 51 "verbose\0" No_argument "v" 52 ) 51 53 ; 52 54 applet_long_options = rmdir_longopts; … … 63 65 64 66 while (1) { 67 if (flags & VERBOSE) { 68 printf("rmdir: removing directory, '%s'\n", path); 69 } 70 65 71 if (rmdir(path) < 0) { 66 72 #if ENABLE_FEATURE_RMDIR_LONG_OPTIONS
Note:
See TracChangeset
for help on using the changeset viewer.