The Samba-Bugzilla – Attachment 3406 Details for
Bug 5540
User variable not passed to the "set primary group script"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix set primary group script user option substitution
0001-Fix-set-primary-group-script-the-user-was-never-sub.patch (text/plain), 864 bytes, created by
Simo Sorce
on 2008-07-12 22:18:36 UTC
(
hide
)
Description:
Fix set primary group script user option substitution
Filename:
MIME Type:
Creator:
Simo Sorce
Created:
2008-07-12 22:18:36 UTC
Size:
864 bytes
patch
obsolete
>From db1de7a1746dd94442cda633fb50166e9ccc4714 Mon Sep 17 00:00:00 2001 >From: Simo Sorce <idra@samba.org> >Date: Sat, 12 Jul 2008 23:14:14 -0400 >Subject: [PATCH] Fix set primary group script, the user was never substituted. > >--- > source/groupdb/mapping.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > >diff --git a/source/groupdb/mapping.c b/source/groupdb/mapping.c >index ce66bfa..dae8275 100644 >--- a/source/groupdb/mapping.c >+++ b/source/groupdb/mapping.c >@@ -303,6 +303,13 @@ int smb_set_primary_group(const char *unix_group, const char* unix_user) > if (!add_script) { > return -1; > } >+ add_script = talloc_all_string_sub(ctx, >+ add_script, >+ "%u", >+ unix_user); >+ if (!add_script) { >+ return -1; >+ } > ret = smbrun(add_script,NULL); > flush_pwnam_cache(); > DEBUG(ret ? 0 : 3,("smb_set_primary_group: " >-- >1.5.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
Actions:
View
Attachments on
bug 5540
: 3406