Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/rmdir.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/coreutils/rmdir.c

    r3232 r3621  
    3232
    3333#define PARENTS          (1 << 0)
    34 //efine VERBOSE          (1 << 1) //accepted but ignored
     34#define VERBOSE          ((1 << 1) * ENABLE_FEATURE_VERBOSE)
    3535#define IGNORE_NON_EMPTY (1 << 2)
    3636
     
    4545    static const char rmdir_longopts[] ALIGN1 =
    4646        "parents\0"                  No_argument "p"
    47         "verbose\0"                  No_argument "v"
    4847        /* Debian etch: many packages fail to be purged or installed
    4948         * because they desperately want this option: */
    5049        "ignore-fail-on-non-empty\0" No_argument "\xff"
     50        IF_FEATURE_VERBOSE(
     51        "verbose\0"                  No_argument "v"
     52        )
    5153        ;
    5254    applet_long_options = rmdir_longopts;
     
    6365
    6466        while (1) {
     67            if (flags & VERBOSE) {
     68                printf("rmdir: removing directory, '%s'\n", path);
     69            }
     70
    6571            if (rmdir(path) < 0) {
    6672#if ENABLE_FEATURE_RMDIR_LONG_OPTIONS
Note: See TracChangeset for help on using the changeset viewer.