The Samba-Bugzilla – Attachment 368 Details for
Bug 977
[homes] and static share
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
don't create the home directory if a static share already exists
homes.patch (text/plain), 991 bytes, created by
Gerald (Jerry) Carter (dead mail address)
on 2004-01-27 07:20:27 UTC
(
hide
)
Description:
don't create the home directory if a static share already exists
Filename:
MIME Type:
Creator:
Gerald (Jerry) Carter (dead mail address)
Created:
2004-01-27 07:20:27 UTC
Size:
991 bytes
patch
obsolete
>Index: source/smbd/password.c >=================================================================== >RCS file: /data/cvs/samba/source/smbd/password.c,v >retrieving revision 1.248.2.18 >diff -u -r1.248.2.18 password.c >--- source/smbd/password.c 22 Nov 2003 13:19:38 -0000 1.248.2.18 >+++ source/smbd/password.c 26 Jan 2004 18:57:07 -0000 >@@ -254,7 +254,13 @@ > if ((!vuser->guest) && vuser->unix_homedir && *(vuser->unix_homedir)) { > DEBUG(3, ("Adding/updating homes service for user '%s' using home directory: '%s'\n", > vuser->user.unix_name, vuser->unix_homedir)); >- vuser->homes_snum = add_home_service(vuser->user.unix_name, vuser->user.unix_name, vuser->unix_homedir); >+ >+ /* only add the home directory if there doesn't exist a static share by that name */ >+ if ( lp_servicenumber(vuser->user.unix_name) == -1 ) { >+ vuser->homes_snum = add_home_service(vuser->user.unix_name, >+ vuser->user.unix_name, vuser->unix_homedir); >+ } >+ > } else { > vuser->homes_snum = -1; > }
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 977
: 368