Call log_init() with its new "restart" (0 or 1) arg.
authorWayne Davison <wayned@samba.org>
Wed, 7 Jun 2006 23:05:24 +0000 (23:05 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 7 Jun 2006 23:05:24 +0000 (23:05 +0000)
clientserver.c
options.c

index 478e6cb..162ed8e 100644 (file)
@@ -389,7 +389,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
        parse_rule(&server_filter_list, p, MATCHFLG_WORD_SPLIT,
                   XFLG_ABS_IF_SLASH | XFLG_OLD_PREFIXES);
 
-       log_init();
+       log_init(1);
 
 #ifdef HAVE_PUTENV
        if (*lp_prexfer_exec(i) || *lp_postxfer_exec(i)) {
@@ -836,7 +836,7 @@ int daemon_main(void)
        if (bind_address == NULL && *lp_bind_address())
                bind_address = lp_bind_address();
 
-       log_init();
+       log_init(0);
 
        rprintf(FLOG, "rsyncd version %s starting, listening on port %d\n",
                RSYNC_VERSION, rsync_port);
index f5b5639..f84c32f 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1327,7 +1327,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
                        if (logfile_format_has_i || log_format_has(logfile_format, 'o'))
                                logfile_format_has_o_or_i = 1;
                }
-               log_init();
+               log_init(0);
        } else if (!am_daemon)
                logfile_format = NULL;