Fix bug #8877 - Syslog broken owing to mistyping of debug_settings.syslog.
commit00d5f32025bf13285ab3f8ffae914107c9eca275
authorJoseph Tam <jtam.home@gmail.com>
Thu, 19 Apr 2012 18:46:16 +0000 (19 11:46 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 19 Apr 2012 22:06:12 +0000 (20 00:06 +0200)
tree722942a26248079ecb1ae3952f02314da2bffb44
parent393936aee6f20d85ba2b3e6c59af7c6b8c554a28
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
lib/util/debug.h