mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +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:
parent
6c2cb6cb95
commit
0c3a8085b3
6
configure
vendored
6
configure
vendored
@ -15118,6 +15118,12 @@ fi
|
|||||||
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
|
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
|
||||||
esac
|
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
|
# Remove timedir on boot, AIX does not have /var/run
|
||||||
INIT_SCRIPT=aix.sh
|
INIT_SCRIPT=aix.sh
|
||||||
INIT_DIR=/etc/rc.d/init.d
|
INIT_DIR=/etc/rc.d/init.d
|
||||||
|
@ -1730,6 +1730,12 @@ case "$host" in
|
|||||||
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
|
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
|
||||||
esac
|
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
|
# Remove timedir on boot, AIX does not have /var/run
|
||||||
INIT_SCRIPT=aix.sh
|
INIT_SCRIPT=aix.sh
|
||||||
INIT_DIR=/etc/rc.d/init.d
|
INIT_DIR=/etc/rc.d/init.d
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Sudo is distributed under the following license:
|
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>
|
Todd C. Miller <Todd.Miller@courtesan.com>
|
||||||
|
|
||||||
Permission to use, copy, modify, and distribute this software for any
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user