2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 21:38:05 +00:00

Avoid using the system strnlen/strndup on AIX < 6. Even if configure

correctly detects it is working on the build machine, the sudo
package may be run on a system with an old libc were it is broken.
This commit is contained in:
Todd C. Miller 2017-01-05 06:22:58 -07:00
parent 6c2cb6cb95
commit 0c3a8085b3
3 changed files with 13 additions and 1 deletions

6
configure vendored
View File

@ -15118,6 +15118,12 @@ fi
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
esac
# strnlen/strndup may be broken on AIX < 6 depending
# on the libc version, use our own.
if test $OSMAJOR -lt 6; then
ac_cv_func_strnlen=no
fi
# Remove timedir on boot, AIX does not have /var/run
INIT_SCRIPT=aix.sh
INIT_DIR=/etc/rc.d/init.d

View File

@ -1730,6 +1730,12 @@ case "$host" in
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
esac
# strnlen/strndup may be broken on AIX < 6 depending
# on the libc version, use our own.
if test $OSMAJOR -lt 6; then
ac_cv_func_strnlen=no
fi
# Remove timedir on boot, AIX does not have /var/run
INIT_SCRIPT=aix.sh
INIT_DIR=/etc/rc.d/init.d

View File

@ -1,6 +1,6 @@
Sudo is distributed under the following license:
Copyright (c) 1994-1996, 1998-2016
Copyright (c) 1994-1996, 1998-2017
Todd C. Miller <Todd.Miller@courtesan.com>
Permission to use, copy, modify, and distribute this software for any