From: Volker Lendecke Date: Mon, 23 Sep 2024 16:52:13 +0000 (+0200) Subject: smbd: Return file type in the posix create context response X-Git-Tag: tdb-1.4.13~1058 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=529951ade5b64bf45e8d1fbc783c935b368099d7;p=thirdparty%2Fsamba.git smbd: Return file type in the posix create context response Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/selftest/knownfail.d/smb3unix b/selftest/knownfail.d/smb3unix deleted file mode 100644 index 1bbd7f7ccf7..00000000000 --- a/selftest/knownfail.d/smb3unix +++ /dev/null @@ -1 +0,0 @@ -samba.tests.smb3unix.samba.tests.smb3unix.Smb3UnixTests.test_create_context_basic1 diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index d381373341c..65744e0bf37 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -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 = {