The Samba-Bugzilla – Attachment 3349 Details for
Bug 5548
segfaults including %m conf from an included file from smb.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch fixing the segfaults
0001-Fix-Bug-5548-segfauls-in-handle_include-with-m-ma.patch (text/plain), 1.09 KB, created by
Michael Adam
on 2008-06-18 15:33:51 UTC
(
hide
)
Description:
Patch fixing the segfaults
Filename:
MIME Type:
Creator:
Michael Adam
Created:
2008-06-18 15:33:51 UTC
Size:
1.09 KB
patch
obsolete
>From c65b456c6a145d15b7fd27a2a3440a0709fc3277 Mon Sep 17 00:00:00 2001 >From: Michael Adam <obnox@samba.org> >Date: Wed, 18 Jun 2008 14:50:53 +0200 >Subject: [PATCH] Fix Bug #5548 (segfauls in handle_include with %m macro expansion). > >In alloc_sub_basic, when expanding '%m', substitute "" instead of >NULL for remote_machine when this is NULL. Else a NULL string >is returned. > >Michael >--- > source/lib/substitute.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > >diff --git a/source/lib/substitute.c b/source/lib/substitute.c >index 17bcbca..926bb82 100644 >--- a/source/lib/substitute.c >+++ b/source/lib/substitute.c >@@ -655,7 +655,10 @@ char *alloc_sub_basic(const char *smb_name, const char *domain_name, > a_string = realloc_string_sub(a_string, "%h", myhostname()); > break; > case 'm' : >- a_string = realloc_string_sub(a_string, "%m", remote_machine); >+ a_string = realloc_string_sub(a_string, "%m", >+ remote_machine >+ ? remote_machine >+ : ""); > break; > case 'v' : > a_string = realloc_string_sub(a_string, "%v", SAMBA_VERSION_STRING); >-- >1.5.4.5 >
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 5548
: 3349