If the user specifies --log-file-format without --log-file,
authorWayne Davison <wayned@samba.org>
Tue, 30 May 2006 17:41:54 +0000 (17:41 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 30 May 2006 17:41:54 +0000 (17:41 +0000)
ignore the useless value.

options.c

index 60a72fd..1727d4b 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1321,7 +1321,8 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
                                logfile_format_has_o_or_i = 1;
                }
                log_init();
-       }
+       } else if (!am_daemon)
+               logfile_format = NULL;
 
        if (daemon_bwlimit && (!bwlimit || bwlimit > daemon_bwlimit))
                bwlimit = daemon_bwlimit;