From: Ralph Boehme Date: Fri, 15 Aug 2025 08:13:33 +0000 (+0200) Subject: smbd: return correct reparse tag DFS when listing directories X-Git-Tag: samba-4.23.0rc3~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2788551866a1569648cb38ca9aab744bd38994d6;p=thirdparty%2Fsamba.git smbd: return correct reparse tag DFS when listing directories BUG: https://bugzilla.samba.org/show_bug.cgi?id=15843 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Fri Aug 15 15:37:05 UTC 2025 on atb-devel-224 (cherry picked from commit 0be53d7ac0a39d6a48c6c5e2144f342c0d406781) --- diff --git a/selftest/knownfail.d/samba.tests.dcerpc b/selftest/knownfail.d/samba.tests.dcerpc deleted file mode 100644 index 8d64a4a3dd8..00000000000 --- a/selftest/knownfail.d/samba.tests.dcerpc +++ /dev/null @@ -1 +0,0 @@ -^samba.tests.dcerpc.dfs.samba.tests.dcerpc.dfs.DfsTests.test_dfs_reparse_tag\(fileserver\) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 137d9a1dacd..95869e054f3 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -639,6 +639,8 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, smb_fname->st.st_ex_mode = (smb_fname->st.st_ex_mode & ~S_IFMT) | S_IFDIR; + smb_fname->fsp->fsp_name->st.st_ex_mode = + smb_fname->st.st_ex_mode; mode = dos_mode_msdfs(conn, dname, &smb_fname->st); get_dosmode = false;