The Samba-Bugzilla – Attachment 7112 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]
Introduce LIBSMBCLIENT_DEBUG_LEVEL envvar support
0001-libsmbclient-Call-lp_set_cmdline-log-level-0-before-.patch (text/plain), 1.14 KB, created by
SATOH Fumiyasu
on 2011-11-17 17:54:25 UTC
(
hide
)
Description:
Introduce LIBSMBCLIENT_DEBUG_LEVEL envvar support
Filename:
MIME Type:
Creator:
SATOH Fumiyasu
Created:
2011-11-17 17:54:25 UTC
Size:
1.14 KB
patch
obsolete
>From 6d12861ce13fe4b7d4ec71a401a3a61f44be9081 Mon Sep 17 00:00:00 2001 >From: SATOH Fumiyasu <fumiyas@osstech.co.jp> >Date: Fri, 18 Nov 2011 02:47:50 +0900 >Subject: [PATCH] libsmbclient: Call lp_set_cmdline("log level", "0") before > smb.conf > >and make libsmbclient possible to pass the debug level via >'LIBSMBCLIENT_DEBUG_LEVEL' envvar. >--- > source3/libsmb/libsmb_context.c | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > >diff --git a/source3/libsmb/libsmb_context.c b/source3/libsmb/libsmb_context.c >index 6c20d65..6ab2b02 100644 >--- a/source3/libsmb/libsmb_context.c >+++ b/source3/libsmb/libsmb_context.c >@@ -43,6 +43,7 @@ static void > SMBC_module_init(void * punused) > { > bool conf_loaded = False; >+ char *debug = NULL; > char *home = NULL; > TALLOC_CTX *frame = talloc_stackframe(); > >@@ -54,6 +55,13 @@ SMBC_module_init(void * punused) > > lp_set_in_client(True); > >+ debug = getenv("LIBSMBCLIENT_DEBUG_LEVEL"); >+ if (debug) { >+ lp_set_cmdline("log level", debug); >+ } else { >+ lp_set_cmdline("log level", "0"); >+ } >+ > home = getenv("HOME"); > if (home) { > char *conf = NULL; >-- >1.7.7.2 >
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