In root case, store into NEWAUX, not old vector.
[kopensolaris-gnu/glibc.git] / sysdeps / mach / hurd / setgid.c
index 660a3fe..b2d9313 100644 (file)
@@ -66,7 +66,7 @@ DEFUN(__setgid, (gid), gid_t gid)
              newaux = auxbuf;
              naux = 2;
            }
-         _hurd_id.aux.gids[0] = _hurd_id.aux.gids[1] = gid;
+         newaux[0] = newaux[1] = gid;
        }
       else
        {