summaryrefslogtreecommitdiffstats
path: root/source3/smbd/msdfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-07-11 21:01:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:33 -0500
commit188b84f9d07ec33f8780ea5494d5892568cdbfe8 (patch)
tree9f0b182ed5230616936b1ddc04776899cab01d20 /source3/smbd/msdfs.c
parent8d786a4e2bf23feaeb041f95bb346fbfd0434853 (diff)
downloadsamba-188b84f9d07ec33f8780ea5494d5892568cdbfe8.tar.gz
samba-188b84f9d07ec33f8780ea5494d5892568cdbfe8.tar.xz
samba-188b84f9d07ec33f8780ea5494d5892568cdbfe8.zip
r23843: Fix bug #4777, reported by Bill Marshall <bmarsh@us.ibm.com>.
Doing a DFS traverse through a deep link could fail (not using explorer). Jeremy. (This used to be commit cd93f0cb00207098014e41e0ba16210cb150b895)
Diffstat (limited to 'source3/smbd/msdfs.c')
-rw-r--r--source3/smbd/msdfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index d4c08848d7c..a89f4ceffcb 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -389,7 +389,8 @@ static NTSTATUS dfs_path_lookup(connection_struct *conn,
pstrcpy(localpath, pdp->reqpath);
status = unix_convert(conn, localpath, search_flag, NULL, &sbuf);
- if (!NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_IS_OK(status) && !NT_STATUS_EQUAL(status,
+ NT_STATUS_OBJECT_PATH_NOT_FOUND)) {
return status;
}