The Samba-Bugzilla – Attachment 7111 Details for
Bug 8609
libsmbclient: No method to do lp_set_cmdline("log level", "0") before loading smb.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Hack to make libsmbclient debug level as global option
samba-libsmbclient-debug-level.patch (text/plain), 1.26 KB, created by
SATOH Fumiyasu
on 2011-11-17 17:31:06 UTC
(
hide
)
Description:
Hack to make libsmbclient debug level as global option
Filename:
MIME Type:
Creator:
SATOH Fumiyasu
Created:
2011-11-17 17:31:06 UTC
Size:
1.26 KB
patch
obsolete
>diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h >index ccf80da..90496af 100644 >--- a/source3/include/libsmbclient.h >+++ b/source3/include/libsmbclient.h >@@ -2840,14 +2840,6 @@ smbc_thread_impl( > struct _SMBCCTX > { > /** >- * debug level >- * >- * DEPRECATED: >- * Use smbc_getDebug() and smbc_setDebug() >- */ >- int debug DEPRECATED_SMBC_INTERFACE; >- >- /** > * netbios name used for making connections > * > * DEPRECATED: >diff --git a/source3/libsmb/libsmb_setget.c b/source3/libsmb/libsmb_setget.c >index 0a02346..71cf865 100644 >--- a/source3/libsmb/libsmb_setget.c >+++ b/source3/libsmb/libsmb_setget.c >@@ -27,6 +27,7 @@ > #include "libsmbclient.h" > #include "libsmb_internal.h" > >+static int smbc_debug_level = 0; > > /** Get the netbios name used for making connections */ > char * >@@ -83,7 +84,7 @@ smbc_setUser(SMBCCTX *c, char * user) > int > smbc_getDebug(SMBCCTX *c) > { >- return c->debug; >+ return smbc_debug_level; > } > > /** Set the debug level */ >@@ -92,7 +93,7 @@ smbc_setDebug(SMBCCTX *c, int debug) > { > char buf[32]; > snprintf(buf, sizeof(buf), "%d", debug); >- c->debug = debug; >+ smbc_debug_level = debug; > lp_set_cmdline("log level", buf); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8609
: 7111 |
7112