The Samba-Bugzilla – Attachment 9530 Details for
Bug 10329
can not substitute %H in path option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for this big
map_username.diff (text/plain), 889 bytes, created by
Andy Igoshin
on 2013-12-17 20:25:42 UTC
(
hide
)
Description:
fix for this big
Filename:
MIME Type:
Creator:
Andy Igoshin
Created:
2013-12-17 20:25:42 UTC
Size:
889 bytes
patch
obsolete
>diff -ur samba-4.1.2.ORIG/source3/lib/substitute.c samba-4.1.2/source3/lib/substitute.c >--- samba-4.1.2.ORIG/source3/lib/substitute.c 2013-06-13 13:21:02.000000000 +0400 >+++ samba-4.1.2/source3/lib/substitute.c 2013-12-17 22:48:30.944741804 +0400 >@@ -726,10 +726,21 @@ > a_string = realloc_string_sub(a_string, "%N", automount_server(user)); > break; > case 'H': { >+ >+ bool was_mapped; >+ char *internal_username = NULL; > char *h; >- if ((h = get_user_home_dir(talloc_tos(), user))) >+ >+ was_mapped = map_username(talloc_tos(), user, &internal_username); >+ if (!internal_username) { >+ DEBUG(0, ("talloc_sub_advanced: Out of memory!\n")); >+ return NULL; >+ } >+ >+ if ((h = get_user_home_dir(talloc_tos(), internal_username))) > a_string = realloc_string_sub(a_string, "%H", h); > TALLOC_FREE(h); >+ TALLOC_FREE(internal_username); > break; > } > case 'P':
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 10329
: 9530