operations when in verbose mode.
(copy_internal): Likewise.
Based on changes from Marty Leisner.
else
dst_backup = NULL;
}
+ else
+ {
+ /* rename succeeded */
+ if (x->verbose)
+ printf (_("%s -> %s (backup)\n"), dst_path, dst_backup);
+ }
new_dst = 1;
}
else if (x->force)
{
if (rename (dst_backup, dst_path))
error (0, errno, _("cannot un-backup `%s'"), dst_path);
+ else
+ {
+ if (x->verbose)
+ printf (_("%s -> %s (unbackup)\n"), dst_backup, dst_path);
+ }
}
return 1;
}