The Samba-Bugzilla – Attachment 7700 Details for
Bug 9038
libsmbclient: SMBC_module_init() does not init global parameters if $HOME is not set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for Samba 3.6.6
samba-3.6.6-libsmbclient-init-global-params.patch (text/plain), 1.22 KB, created by
SATOH Fumiyasu
on 2012-07-13 04:19:13 UTC
(
hide
)
Description:
Proposed patch for Samba 3.6.6
Filename:
MIME Type:
Creator:
SATOH Fumiyasu
Created:
2012-07-13 04:19:13 UTC
Size:
1.22 KB
patch
obsolete
>From bf5b79125d4334bc2501d0f6855f10099d5079ff Mon Sep 17 00:00:00 2001 >From: SATOH Fumiyasu <fumiyas@osstech.co.jp> >Date: Fri, 13 Jul 2012 13:14:34 +0900 >Subject: [PATCH] libsmbclient: SMBC_module_init() does not init global > parameters if no $HOME > >smbc_free_context(smbcctx) frees the global parameter structure >if there is no other SMBCCTX. But next smbc_new_context() >(SMBC_module_init() called by smbc_new_context()) does not >initialize the new global parameter structure if $HOME >environment variable is not defined. Thus following libsmbclient >APIs call can NOT work correctly. >--- > source3/libsmb/libsmb_context.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/libsmb/libsmb_context.c b/source3/libsmb/libsmb_context.c >index 6c20d65..fa13e41 100644 >--- a/source3/libsmb/libsmb_context.c >+++ b/source3/libsmb/libsmb_context.c >@@ -76,7 +76,7 @@ SMBC_module_init(void * punused) > * defaults ... > */ > >- if (!lp_load(get_dyn_CONFIGFILE(), True, False, False, False)) { >+ if (!lp_load(get_dyn_CONFIGFILE(), True, False, False, True)) { > DEBUG(5, ("Could not load config file: %s\n", > get_dyn_CONFIGFILE())); > } else if (home) { >-- >1.7.10.4 >
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 9038
: 7700