diff options
author | Gerald Carter <jerry@samba.org> | 2004-01-31 14:45:21 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-01-31 14:45:21 +0000 |
commit | 87d74fed8c6438cbf7dc690aed2f8f866fab95e3 (patch) | |
tree | 6cf1d28dc915690a06d3a7a18df97065fadfd125 /source3/smbd | |
parent | c21764b9214dce72f3c07a578d9c6a5c120bd95f (diff) | |
download | samba-87d74fed8c6438cbf7dc690aed2f8f866fab95e3.tar.gz samba-87d74fed8c6438cbf7dc690aed2f8f866fab95e3.tar.bz2 samba-87d74fed8c6438cbf7dc690aed2f8f866fab95e3.zip |
cleanup patch for bug 977 so we don't display incorrect debug messages
(This used to be commit d59dc1bc1cf47eee2158e5c9d56d0ed750948fa0)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 36e3fb4738..10c6aadb1f 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -250,17 +250,21 @@ int register_vuid(auth_serversupplied_info *server_info, DATA_BLOB session_key, return -1; } - /* Register a home dir service for this user */ - 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)); + /* Register a home dir service for this user iff + (a) This is not a guest connection, + (b) we have a home directory defined, and + (c) there s not an existing static share by that name */ + + if ( (!vuser->guest) + && vuser->unix_homedir + && *(vuser->unix_homedir) + && (lp_servicenumber(vuser->user.unix_name) == -1) ) + { + DEBUG(3, ("Adding/updating homes service for user '%s' using home directory: '%s'\n", + 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; } |