The Samba-Bugzilla – Attachment 9461 Details for
Bug 10286
%G is not expanded in a service path
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for master
0001-s3-lib-Fix-G-subtituion-in-smbd.patch (text/plain), 981 bytes, created by
Andreas Schneider
on 2013-11-21 19:29:12 UTC
(
hide
)
Description:
Patch for master
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2013-11-21 19:29:12 UTC
Size:
981 bytes
patch
obsolete
>From a7a34fe1f2d7a944a2587186775e641c45c684ac Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Thu, 21 Nov 2013 20:25:38 +0100 >Subject: [PATCH] s3-lib: Fix %G subtituion in smbd. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=10286 >Signed-off-by: Andreas Schneider <asn@samba.org> >--- > source3/lib/substitute.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c >index a254bca..1696b38 100644 >--- a/source3/lib/substitute.c >+++ b/source3/lib/substitute.c >@@ -738,6 +738,14 @@ char *talloc_sub_advanced(TALLOC_CTX *ctx, > case 'S': > a_string = realloc_string_sub(a_string, "%S", servicename); > break; >+ case 'G': >+ { >+ char gid_str[32]; >+ >+ snprintf(gid_str, sizeof(gid_str), "%u", (unsigned int)gid); >+ a_string = realloc_string_sub(a_string, "%G", gid_str); >+ } >+ break; > case 'g': > a_string = realloc_string_sub(a_string, "%g", gidtoname(gid)); > break; >-- >1.8.4.3 >
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
Flags:
ambi
:
review-
jra
:
review-
Actions:
View
Attachments on
bug 10286
:
9461
|
9486
|
9522
|
9523
|
11784