smbd: put back code to fill in user and group SID
authorRalph Boehme <slow@samba.org>
Wed, 18 Oct 2023 13:32:03 +0000 (15:32 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 18 Oct 2023 16:46:00 +0000 (16:46 +0000)
This is accidentally removed by 6874ed6a9defdf6f842e1e25f1ffd95708534ca6.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Oct 18 16:46:00 UTC 2023 on atb-devel-224

source3/smbd/smb2_create.c

index d71dfc3083fc42a6f3d843bee77e28590c8b3021..94e73b0a27cec0d37f3534d24177c32461eec32f 100644 (file)
@@ -1673,6 +1673,9 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req)
                };
                enum ndr_err_code ndr_err;
 
+               uid_to_sid(&cc.owner, psbuf->st_ex_uid);
+               gid_to_sid(&cc.group, psbuf->st_ex_gid);
+
                ndr_err =
                        ndr_push_smb3_posix_cc_info(&ndr,
                                                    NDR_SCALARS | NDR_BUFFERS,