The Samba-Bugzilla – Attachment 10171 Details for
Bug 10722
samba-tool crashes with uncaught exception when parsing include = /path/to/%U.conf in smb.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[fixed] handle (ignore) substitution variable in smb.conf
handle_substitution_var.patch (text/plain), 1.19 KB, created by
Quentin Gibeaux
on 2014-08-04 09:30:20 UTC
(
hide
)
Description:
[fixed] handle (ignore) substitution variable in smb.conf
Filename:
MIME Type:
Creator:
Quentin Gibeaux
Created:
2014-08-04 09:30:20 UTC
Size:
1.19 KB
patch
obsolete
>From 57b348242ef7c3c978729de04b26637f1f405dba Mon Sep 17 00:00:00 2001 >From: Quentin Gibeaux <qgibeaux@iris-tech.fr> >Date: Mon, 4 Aug 2014 10:05:29 +0200 >Subject: [PATCH] handle (ignore) substitution variable in smb.conf > >--- > lib/param/loadparm.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > >diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c >index 455c5e6..5aeaada 100644 >--- a/lib/param/loadparm.c >+++ b/lib/param/loadparm.c >@@ -1133,8 +1133,21 @@ static bool handle_include(struct loadparm_context *lp_ctx, int unused, > > lpcfg_string_set(lp_ctx, ptr, fname); > >- if (file_exist(fname)) >+ if (file_exist(fname)) { > return pm_process(fname, do_section, do_parameter, lp_ctx); >+ } else { >+ char *substitution_variable_substring; >+ substitution_variable_substring = strchr(fname, '%'); >+ if(substitution_variable_substring) { >+ char nextChar = substitution_variable_substring[1]; >+ if(nextChar && (nextChar>='a'&& nextChar<='z') >+ || (nextChar>='A' && nextChar<='Z')) >+ { >+ DEBUG (2, ("Tried to load %s but variable in filename, ignoring file...\n", fname) ); >+ return true; >+ } >+ } >+ } > > DEBUG(2, ("Can't find include file %s\n", fname)); > >-- >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 10722
:
10116
|
10170
|
10171
|
10257
|
11420
|
11551
|
11552
|
11553
|
11554
|
11555
|
11702