]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Return file type in the posix create context response
authorVolker Lendecke <vl@samba.org>
Mon, 23 Sep 2024 16:52:13 +0000 (18:52 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2024 15:22:46 +0000 (15:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/knownfail.d/smb3unix [deleted file]
source3/smbd/smb2_create.c

diff --git a/selftest/knownfail.d/smb3unix b/selftest/knownfail.d/smb3unix
deleted file mode 100644 (file)
index 1bbd7f7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-samba.tests.smb3unix.samba.tests.smb3unix.Smb3UnixTests.test_create_context_basic1
index d381373341c32c2f3437cdec639593503e1f95fa..65744e0bf37fb63236d02fc8f558b0c139febd62 100644 (file)
@@ -1683,8 +1683,7 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req)
                struct stat_ex *psbuf = &state->result->fsp_name->st;
                struct smb3_posix_cc_info cc = {
                        .nlinks = psbuf->st_ex_nlink,
-                       .posix_mode = unix_perms_to_wire(psbuf->st_ex_mode &
-                                                        ~S_IFMT),
+                       .posix_mode = unix_mode_to_wire(psbuf->st_ex_mode),
                };
                uint8_t buf[sizeof(struct smb3_posix_cc_info)];
                struct ndr_push ndr = {