If the client is the sender and it is wanting to log deletes, the
current generator code neglects to send MSG_DELETED to the client side
unless some delete verbosity is enabled. With this new version on the
generator side, the logfile will now mention deletes, even if the
sending (client) side is an older rsync. Fixes bug 10182.
x.file.mode = mode;
- if (!INFO_GTE(DEL, 1) && !stdout_format)
- ;
- else if (am_server && protocol_version >= 29 && len < MAXPATHLEN) {
+ if (am_server && protocol_version >= 29 && len < MAXPATHLEN) {
if (S_ISDIR(mode))
len++; /* directories include trailing null */
send_msg(MSG_DELETED, fname, len, am_generator);
- } else {
+ } else if (!INFO_GTE(DEL, 1) && !stdout_format)
+ ;
+ else {
fmt = stdout_format_has_o_or_i ? stdout_format : "deleting %n";
log_formatted(FCLIENT, fmt, "del.", &x.file, fname, ITEM_DELETED, NULL);
}