mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
bug 977 - don't create a homes share for a user if a static share already exists by the same name
(This used to be commit 6b89a76aa7
)
This commit is contained in:
parent
e2d301accf
commit
f104d75026
@ -254,7 +254,13 @@ int register_vuid(auth_serversupplied_info *server_info, DATA_BLOB session_key,
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user