summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-05-19 14:00:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:09 -0500
commit679e539655dcf37a719816f9c4e4cddfdf73379d (patch)
treefd802a74e3a377b26f90fdf98284afe2c99aa22a
parent511f1cef23beb297061f7c59ccc0e17a2275ea1b (diff)
downloadsamba-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.c5
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;
}