Fix bug #8877 - Syslog broken owing to mistyping of debug_settings.syslog.
authorJoseph Tam <jtam.home@gmail.com>
Thu, 19 Apr 2012 18:46:16 +0000 (11:46 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 7 May 2012 16:39:01 +0000 (18:39 +0200)
commit50973b96e2e5bf1f8a434a8be986e359a9e3b3e5
treec50bf22f908feae558341ea27087f66b455c7481
parentfaafade5dd948918a27284b82384340995d1bf55
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
(cherry picked from commit 00d5f32025bf13285ab3f8ffae914107c9eca275)

Signed-off-by: Jeremy Allison <jra@samba.org>
lib/util/debug.h