- if (protocol_version >= 29) {
- itemizing = 1;
- code = daemon_log_format_has_i ? 0 : FLOG;
- maybe_DEL_TERSE = log_format_has_o_or_i ? 0 : DEL_TERSE;
- maybe_PERMS_REPORT = log_format_has_i ? 0 : PERMS_REPORT;
- } else if (am_daemon) {
- itemizing = daemon_log_format_has_i && !dry_run;
- code = itemizing || dry_run ? FCLIENT : FINFO;
- maybe_DEL_TERSE = DEL_TERSE;
- maybe_PERMS_REPORT = PERMS_REPORT;
- } else if (!am_server) {
- itemizing = log_format_has_i;
- code = itemizing ? 0 : FINFO;
- maybe_DEL_TERSE = log_format_has_o_or_i ? 0 : DEL_TERSE;
- maybe_PERMS_REPORT = log_format_has_i ? 0 : PERMS_REPORT;
- } else {
- itemizing = 0;
- code = FINFO;
- maybe_DEL_TERSE = DEL_TERSE;
- maybe_PERMS_REPORT = PERMS_REPORT;
- }
-