]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: fix group marshalling in smb3_file_posix_information_init
authorRalph Boehme <slow@samba.org>
Tue, 24 Oct 2023 17:06:23 +0000 (19:06 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 26 Oct 2023 15:29:29 +0000 (15:29 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/smb2_posix.c

index 1cd76e2222294c8469e60aa2e12f27d9187c8c98..733854ca672459c0d36d7272d538d0ea9e922463 100644 (file)
@@ -49,7 +49,7 @@ void smb3_file_posix_information_init(
                uid_to_sid(&dst->cc.owner, st->st_ex_uid);
        }
        if (st->st_ex_gid != (uid_t)-1) {
-               uid_to_sid(&dst->cc.owner, st->st_ex_gid);
+               gid_to_sid(&dst->cc.group, st->st_ex_gid);
        }
 
        switch (st->st_ex_mode & S_IFMT) {