From: Ralph Boehme Date: Tue, 24 Oct 2023 17:06:23 +0000 (+0200) Subject: smbd: fix group marshalling in smb3_file_posix_information_init X-Git-Tag: talloc-2.4.2~1001 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45643c703b636db22514548e59ac13be9e80f524;p=thirdparty%2Fsamba.git smbd: fix group marshalling in smb3_file_posix_information_init Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/smb2_posix.c b/source3/smbd/smb2_posix.c index 1cd76e22222..733854ca672 100644 --- a/source3/smbd/smb2_posix.c +++ b/source3/smbd/smb2_posix.c @@ -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) {