mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +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:
parent
08b0b626f1
commit
06beb6f064
3
NEWS
3
NEWS
@ -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
4
configure
vendored
@ -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
|
||||
|
@ -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])])
|
||||
|
Loading…
x
Reference in New Issue
Block a user