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) {