[PATCH] cp: add -u/--update and --remove-destination
shen long
wdlkmpx at gmail.com
Sun May 22 04:05:52 UTC 2016
Oops instead of
if (unlink(dest) < 0) {
should be
if (remove_file(dest, FILEUTILS_FORCE) < 0) {
or something like that?
this should go before that line:
if (flags & FILEUTILS_INTERACTIVE) {
fprintf(stderr, "%s: overwrite '%s'? ", applet_name, dest);
if (!bb_ask_confirmation())
return 0; /* not allowed to overwrite */
}
so I think that should be it, i can resubmit the patch with these
changes, i guess i rushed
More information about the busybox
mailing list