diff options
author | Gerald Carter <jerry@samba.org> | 2006-05-19 14:00:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:09 -0500 |
commit | 679e539655dcf37a719816f9c4e4cddfdf73379d (patch) | |
tree | fd802a74e3a377b26f90fdf98284afe2c99aa22a | |
parent | 511f1cef23beb297061f7c59ccc0e17a2275ea1b (diff) | |
download | samba-679e539655dcf37a719816f9c4e4cddfdf73379d.tar.gz samba-679e539655dcf37a719816f9c4e4cddfdf73379d.tar.bz2 samba-679e539655dcf37a719816f9c4e4cddfdf73379d.zip |
r15712: BUG 3435: patch from volker to fix 'msdfs root = yes' in [homes]
(This used to be commit 466478f07e6233b89f442660ad42ef7ee870ad48)
-rw-r--r-- | source3/smbd/msdfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 4606441c3a..700aa2ae81 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -419,7 +419,10 @@ BOOL dfs_redirect( pstring pathname, connection_struct *conn, BOOL search_wcard_ return False; } - if (!strequal(dp.servicename, lp_servicename(SNUM(conn)) )) { + if ( !( strequal(dp.servicename, lp_servicename(SNUM(conn))) + || ( strequal(dp.servicename, HOMES_NAME) + && strequal(lp_servicename(SNUM(conn)), get_current_username()) )) ) + { return False; } |