summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}