diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-11-28 11:18:19 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-11-28 11:18:19 +0000 |
commit | f12ca311c01cba335a9e4c866a0c966d2efd41a2 (patch) | |
tree | 0740f05d6deda7041887e5dfa9b981f280ff8f0c /sysdeps | |
parent | 9a40233fa0d4c587880f5d3d3f42813ec6e6ae32 (diff) | |
download | glibc-f12ca311c01cba335a9e4c866a0c966d2efd41a2.tar glibc-f12ca311c01cba335a9e4c866a0c966d2efd41a2.tar.gz glibc-f12ca311c01cba335a9e4c866a0c966d2efd41a2.tar.bz2 glibc-f12ca311c01cba335a9e4c866a0c966d2efd41a2.zip |
Updated to fedora-glibc-20061128T1037cvs/fedora-glibc-2_5_90-8
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/getgroups.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/getgroups.c b/sysdeps/unix/sysv/linux/i386/getgroups.c index b7a0a4efd4..f69baf943b 100644 --- a/sysdeps/unix/sysv/linux/i386/getgroups.c +++ b/sysdeps/unix/sysv/linux/i386/getgroups.c @@ -52,8 +52,6 @@ __getgroups (int n, gid_t *groups) } else { - int i, ngids; - __kernel_gid_t kernel_groups[n = MIN (n, __sysconf (_SC_NGROUPS_MAX))]; # ifdef __NR_getgroups32 if (__libc_missing_32bit_uids <= 0) { @@ -69,6 +67,9 @@ __getgroups (int n, gid_t *groups) } # endif /* __NR_getgroups32 */ + int i, ngids; + __kernel_gid_t kernel_groups[n = MIN (n, __sysconf (_SC_NGROUPS_MAX))]; + ngids = INLINE_SYSCALL (getgroups, 2, n, CHECK_N (kernel_groups, n)); if (n != 0 && ngids > 0) for (i = 0; i < ngids; i++) |