Fix mistaken assignment of gid to uid field.
authorJeremy Allison <jra@samba.org>
Fri, 3 Feb 2012 23:58:12 +0000 (15:58 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 3 Feb 2012 23:58:12 +0000 (15:58 -0800)
source3/smbd/posix_acls.c

index 7d8bd84b4591fbf5b0316832ba80e0a1e1eb981c..ecacecc759903e9151bfe19c2f18fc45d934e39d 100644 (file)
@@ -1453,7 +1453,7 @@ static bool ensure_canon_entry_valid(connection_struct *conn, canon_ace **pp_ace
                ZERO_STRUCTP(pace);
                pace->type = SMB_ACL_GROUP_OBJ;
                pace->owner_type = GID_ACE;
-               pace->unix_ug.uid = pst->st_ex_gid;
+               pace->unix_ug.gid = pst->st_ex_gid;
                pace->trustee = *pfile_grp_sid;
                pace->attr = ALLOW_ACE;
                if (setting_acl) {