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
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to