Skip to content

Commit

Permalink
Output a backup message when verbose > 1 and we did a copy prior
Browse files Browse the repository at this point in the history
to an --inplace update.
  • Loading branch information
Wayne Davison committed Sep 20, 2004
1 parent 29fe396 commit 89389a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ static void recv_generator(char *fname, struct file_struct *file, int i,
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);
}

Expand Down

0 comments on commit 89389a2

Please sign in to comment.