diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-10-29 15:29:09 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-11-02 04:36:04 +0000 |
commit | d9f67eebf621adacf5514c7ba1ed17b4953db762 (patch) | |
tree | d47933d295d9291c0711bb6c103c7c365c685d49 /source3/libsmb | |
parent | cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb (diff) | |
download | samba-d9f67eebf621adacf5514c7ba1ed17b4953db762.tar.gz samba-d9f67eebf621adacf5514c7ba1ed17b4953db762.tar.xz samba-d9f67eebf621adacf5514c7ba1ed17b4953db762.zip |
s3-debug Remove last direct assignements to DEBUGLEVEL
All future assignments of the debug level should go via
lp_set_cmdline("log level", "x") because this will ensure the value is
not overwritten in an smb.conf load.
Andrew Bartlett
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/libsmb_setget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/libsmb_setget.c b/source3/libsmb/libsmb_setget.c index 20835781ec0..f2f5aec6c46 100644 --- a/source3/libsmb/libsmb_setget.c +++ b/source3/libsmb/libsmb_setget.c @@ -90,8 +90,10 @@ smbc_getDebug(SMBCCTX *c) void smbc_setDebug(SMBCCTX *c, int debug) { + char buf[32]; + snprintf(buf, sizeof(buf), "%d", debug); c->debug = debug; - DEBUGLEVEL = debug; + lp_set_cmdline("log level", buf); } /** |