Commit fe960187 authored by Wayne Davison's avatar Wayne Davison

If we update the contents of a symlink and --remove-sent-files

is enabled, tell the sender about it via MSG_SUCCESS.
parent 07c6ae7d
......@@ -42,6 +42,7 @@ extern int preserve_gid;
extern int preserve_times;
extern int omit_dir_times;
extern int delete_during;
extern int remove_sent_files;
extern int update_only;
extern int opt_ignore_existing;
extern int inplace;
......@@ -555,6 +556,11 @@ static void recv_generator(char *fname, struct file_list *flist,
rprintf(code, "%s -> %s\n", safe_fname(fname),
safe_fname(file->u.link));
}
if (remove_sent_files && !dry_run) {
char numbuf[4];
SIVAL(numbuf, 0, ndx);
send_msg(MSG_SUCCESS, numbuf, 4);
}
}
#endif
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment