about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386/getgroups.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-26 18:15:57 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-26 18:15:57 +0000
commitda058e4542e6aaaef9258f1c94b450f4b32063f0 (patch)
tree9f41446e9dfe62469ffafc76b1977f470e6aa98e /sysdeps/unix/sysv/linux/i386/getgroups.c
parent441ee04334e65e41ac637f110af76f0f46e78f34 (diff)
downloadglibc-da058e4542e6aaaef9258f1c94b450f4b32063f0.tar.gz
glibc-da058e4542e6aaaef9258f1c94b450f4b32063f0.tar.xz
glibc-da058e4542e6aaaef9258f1c94b450f4b32063f0.zip
(__getgroups): Fix the error condition check for the return value of getgroups32.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/getgroups.c')
-rw-r--r--sysdeps/unix/sysv/linux/i386/getgroups.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/getgroups.c b/sysdeps/unix/sysv/linux/i386/getgroups.c
index 2f42117692..a8bf232989 100644
--- a/sysdeps/unix/sysv/linux/i386/getgroups.c
+++ b/sysdeps/unix/sysv/linux/i386/getgroups.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000, 2001, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ extern int __syscall_getgroups32 (int, __kernel_gid32_t *__unbounded);
 # if __ASSUME_32BITUIDS == 0
 /* This variable is shared with all files that need to check for 32bit
    uids.  */
-extern int __libc_missing_32bit_uids;
+extern int __libc_missing_32bit_uids attribute_hidden;
 # endif
 #endif /* __NR_getgroups32 */
 
@@ -64,7 +64,7 @@ __getgroups (int n, gid_t *groups)
 	  int saved_errno = errno;
 
 	  result = INLINE_SYSCALL (getgroups32, 2, n, CHECK_N (groups, n));
-	  if (result == 0 || errno != ENOSYS)
+	  if (result != -1 || errno != ENOSYS)
 	    return result;
 
 	  __set_errno (saved_errno);