From 679e539655dcf37a719816f9c4e4cddfdf73379d Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 19 May 2006 14:00:12 +0000 Subject: r15712: BUG 3435: patch from volker to fix 'msdfs root = yes' in [homes] (This used to be commit 466478f07e6233b89f442660ad42ef7ee870ad48) --- source3/smbd/msdfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit