From b71f729698fba58543645e9ec40e95d57ea19e3b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 13 May 2024 15:44:52 +0200 Subject: [PATCH] smbd: Add reparse tag to smb3_posix_cc_info Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue May 14 23:29:46 UTC 2024 on atb-devel-224 --- selftest/knownfail.d/smb3unix | 1 - source3/smbd/smb2_create.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 selftest/knownfail.d/smb3unix diff --git a/selftest/knownfail.d/smb3unix b/selftest/knownfail.d/smb3unix deleted file mode 100644 index e93d191ac0f..00000000000 --- a/selftest/knownfail.d/smb3unix +++ /dev/null @@ -1 +0,0 @@ -samba.tests.smb3unix.samba.tests.smb3unix.Smb3UnixTests.test_create_context_reparse diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 8a40717235c..8fba899a504 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -32,6 +32,7 @@ #include "messages.h" #include "lib/util_ea.h" #include "source3/passdb/lookup_sid.h" +#include "source3/modules/util_reparse.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_SMB2 @@ -1696,6 +1697,8 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req) uid_to_sid(&cc.owner, psbuf->st_ex_uid); gid_to_sid(&cc.group, psbuf->st_ex_gid); + (void)fsctl_get_reparse_tag(state->result, &cc.reparse_tag); + ndr_err = ndr_push_smb3_posix_cc_info(&ndr, NDR_SCALARS | NDR_BUFFERS,