Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/mv.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/mv.c

    r3232 r3621  
    3434    "force\0"       No_argument "f"
    3535    "no-clobber\0"  No_argument "n"
     36    IF_FEATURE_VERBOSE(
    3637    "verbose\0"     No_argument "v"
     38    )
    3739    ;
    3840#endif
     
    4143#define OPT_INTERACTIVE (1 << 1)
    4244#define OPT_NOCLOBBER   (1 << 2)
     45#define OPT_VERBOSE     ((1 << 3) * ENABLE_FEATURE_VERBOSE)
     46
    4347
    4448int mv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     
    5963     * If more than one of -f, -i, -n is specified , only the final one
    6064     * takes effect (it unsets previous options).
    61      * -v is accepted but ignored.
    6265     */
    6366    opt_complementary = "-2:f-in:i-fn:n-fi";
     
    149152        }
    150153 RET_0:
     154        if (flags & OPT_VERBOSE) {
     155            printf("'%s' -> '%s'\n", *argv, dest);
     156        }
    151157        if (dest != last) {
    152158            free((void *) dest);
Note: See TracChangeset for help on using the changeset viewer.