]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In filename_convert_dirfsp_nosymlink(), allow a NT_STATUS_PATH_NOT_COVERED...
authorJeremy Allison <jra@samba.org>
Mon, 8 Aug 2022 20:15:17 +0000 (13:15 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 12 Aug 2022 18:19:31 +0000 (18:19 +0000)
openat_pathref_dirfsp_nosymlink() can now return NT_STATUS_PATH_NOT_COVERED.
Don't convert this automatically into NT_STATUS_OBJECT_PATH_NOT_FOUND.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15144

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c

index 87abc8be376873cff9a589a65e88ed4e056cc3c7..411440973627c314ca952095609ab17fe7730020 100644 (file)
@@ -2549,6 +2549,11 @@ static NTSTATUS filename_convert_dirfsp_nosymlink(
                          nt_errstr(status));
                TALLOC_FREE(dirname);
 
+               if (NT_STATUS_EQUAL(status, NT_STATUS_PATH_NOT_COVERED)) {
+                       /* MS-DFS error must propagate back out. */
+                       goto fail;
+               }
+
                if (!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) {
                        /*
                         * Except ACCESS_DENIED, everything else leads