Output a backup message when verbose > 1 and we did a copy prior
authorWayne Davison <wayned@samba.org>
Mon, 20 Sep 2004 19:47:59 +0000 (19:47 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 20 Sep 2004 19:47:59 +0000 (19:47 +0000)
to an --inplace update.

generator.c

index 860a7e6..cc61c4c 100644 (file)
@@ -572,6 +572,8 @@ prepare_to_open:
        if (f_copy >= 0) {
                close(f_copy);
                set_perms(backupptr, back_file, NULL, 0);
+               if (verbose > 1)
+                       rprintf(FINFO, "backed up %s to %s\n", fname, backupptr);
                free(back_file);
        }