summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Tam <jtam.home@gmail.com>2012-04-19 11:46:16 -0700
committerJeremy Allison <jra@samba.org>2012-04-20 00:06:12 +0200
commit00d5f32025bf13285ab3f8ffae914107c9eca275 (patch)
tree722942a26248079ecb1ae3952f02314da2bffb44
parent393936aee6f20d85ba2b3e6c59af7c6b8c554a28 (diff)
downloadsamba-00d5f32025bf13285ab3f8ffae914107c9eca275.tar.gz
samba-00d5f32025bf13285ab3f8ffae914107c9eca275.tar.bz2
samba-00d5f32025bf13285ab3f8ffae914107c9eca275.zip
Fix bug #8877 - Syslog broken owing to mistyping of debug_settings.syslog.
Setting "syslog only = yes" did not divert log messages to syslog. The test in lib/util/debug.c:Debug1():747 if( syslog_level < state.settings.syslog ) produces wrong results since .syslog is typed "bool" rather than "int". The attached patch fixes this by typing this field correctly as "int". Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 20 00:06:12 CEST 2012 on sn-devel-104
-rw-r--r--lib/util/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/debug.h b/lib/util/debug.h
index b3647a3345..256641852b 100644
--- a/lib/util/debug.h
+++ b/lib/util/debug.h
@@ -201,7 +201,7 @@ enum debug_logtype {DEBUG_DEFAULT_STDERR = 0, DEBUG_DEFAULT_STDOUT = 1, DEBUG_FI
struct debug_settings {
size_t max_log_size;
- bool syslog;
+ int syslog;
bool syslog_only;
bool timestamp_logs;
bool debug_prefix_timestamp;