summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/setgroups.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/setgroups.c')
-rw-r--r--sysdeps/unix/sysv/linux/setgroups.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/setgroups.c b/sysdeps/unix/sysv/linux/setgroups.c
index ff27e79eaa..b46564a0db 100644
--- a/sysdeps/unix/sysv/linux/setgroups.c
+++ b/sysdeps/unix/sysv/linux/setgroups.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2018 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
@@ -28,8 +28,9 @@ int
setgroups (size_t n, const gid_t *groups)
{
#ifdef __NR_setgroups32
-# error "wrong setgroups.c file used"
-#endif
+ return INLINE_SETXID_SYSCALL (setgroups32, 2, n, groups);
+#else
return INLINE_SETXID_SYSCALL (setgroups, 2, n, groups);
+#endif
}
libc_hidden_def (setgroups)