Skip to content

Commit

Permalink
When outputting the flist info (in a debug-level of verbosity) we
Browse files Browse the repository at this point in the history
now mention the UID of the file when we are the sender (as well as
when we are root).
  • Loading branch information
Wayne Davison committed Sep 17, 2004
1 parent eb8ffa9 commit 56194bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flist.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ extern int do_progress;
extern int am_root;
extern int am_server;
extern int am_daemon;
extern int am_sender;
extern int always_checksum;
extern int module_id;
extern int ignore_errors;
Expand Down Expand Up @@ -1487,7 +1488,7 @@ static void output_flist(struct file_list *flist)

for (i = 0; i < flist->count; i++) {
file = flist->files[i];
if (am_root && preserve_uid)
if ((am_root || am_sender) && preserve_uid)
sprintf(uidbuf, " uid=%ld", (long)file->uid);
else
*uidbuf = '\0';
Expand Down

0 comments on commit 56194bc

Please sign in to comment.