From: Wayne Davison Date: Sat, 19 Feb 2005 22:16:35 +0000 (+0000) Subject: We now set daemon_log_format_has_i and daemon_log_format_has_o_or_i X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/f39b2060fe9ca6f1a9d271ed757669a8fde58e6c We now set daemon_log_format_has_i and daemon_log_format_has_o_or_i instead of itemize_daemon_changes. --- diff --git a/clientserver.c b/clientserver.c index 750068c8..fba0d212 100644 --- a/clientserver.c +++ b/clientserver.c @@ -52,7 +52,8 @@ extern char *files_from; char *auth_user; int read_only = 0; -int itemize_daemon_changes = 0; +int daemon_log_format_has_i = 0; +int daemon_log_format_has_o_or_i = 0; int module_id = -1; /* Length of lp_path() string when in daemon mode & not chrooted, else 0. */ @@ -284,8 +285,13 @@ static int rsync_module(int f_in, int f_out, int i) if (lp_read_only(i)) read_only = 1; - if (lp_transfer_logging(i) && strstr(lp_log_format(i), "%i") != NULL) - itemize_daemon_changes = 1; + if (lp_transfer_logging(i)) { + if (strstr(lp_log_format(i), "%i") != NULL) + daemon_log_format_has_i = 1; + if (daemon_log_format_has_i + || strstr(lp_log_format(i), "%o") != NULL) + daemon_log_format_has_o_or_i = 1; + } am_root = (MY_UID() == 0);