2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

No longer need to define _DARWIN_UNLIMITED_GETGROUPS on macOS.

We now define _DARWIN_C_SOURCE which accomplishes the same thing.
This commit is contained in:
Todd C. Miller 2021-03-03 11:26:02 -07:00
parent 08b0b626f1
commit 06beb6f064
3 changed files with 3 additions and 7 deletions

3
NEWS
View File

@ -69,6 +69,9 @@ What's new in Sudo 1.9.6
return all of a user's non-local groups via getgroups(2), even
when _DARWIN_UNLIMITED_GETGROUPS is defined. Bug #946.
* Fixed a potential use-after-free in the PAM conversation function.
Bug #967.
What's new in Sudo 1.9.5p2
* Fixed sudo's setprogname(3) emulation on systems that don't

4
configure vendored
View File

@ -17100,10 +17100,6 @@ fi
done
# macOS >= 10.6 getgroups(2) can support more than > 16 groups
printf "%s\n" "#define _DARWIN_UNLIMITED_GETGROUPS 1" >>confdefs.h
# We need to force a flat namespace to make libc
# symbol hooking work like it does on ELF.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-force_flat_namespace" >&5

View File

@ -2346,9 +2346,6 @@ case "$host" in
# Undocumented API that dynamically allocates the groups.
AC_CHECK_FUNCS([getgrouplist_2], [AC_CHECK_DECLS([getgrouplist_2])])
# macOS >= 10.6 getgroups(2) can support more than > 16 groups
AC_DEFINE([_DARWIN_UNLIMITED_GETGROUPS])
# We need to force a flat namespace to make libc
# symbol hooking work like it does on ELF.
AX_CHECK_LINK_FLAG([-Wl,-force_flat_namespace], [AX_APPEND_FLAG([-Wl,-force_flat_namespace], [SUDO_LDFLAGS])])