r23843: Fix bug #4777, reported by Bill Marshall <bmarsh@us.ibm.com>.
authorJeremy Allison <jra@samba.org>
Wed, 11 Jul 2007 21:01:06 +0000 (21:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:33 +0000 (12:28 -0500)
Doing a DFS traverse through a deep link could fail (not using
explorer).
Jeremy.
(This used to be commit cd93f0cb00207098014e41e0ba16210cb150b895)

source3/smbd/msdfs.c

index d4c08848d7c2a1d0d30617687d2e841e17293d7c..a89f4ceffcb16efbb0642950f366dda56e1ef89b 100644 (file)
@@ -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;
        }