2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

cfmakeraw(3) is broken on AIX, don't use it there

The cfmakeraw(3) function exists but does not set VMIN to 1 or VTIME
to 0 in c_cc[] in struct termios, which makes it useless.  The AIX
version also doesn't clear the CSIZE and PARENB flags from c_cflag.
This commit is contained in:
Todd C. Miller 2020-05-12 09:52:27 -06:00
parent af0d840322
commit d3b710b0da
2 changed files with 6 additions and 0 deletions

3
configure vendored
View File

@ -15605,6 +15605,9 @@ fi
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";; *) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
esac esac
# cfmakeraw is broken on AIX (and is not documented)
: ${ac_cv_func_cfmakeraw='no'}
# strnlen/strndup may be broken on AIX < 6 depending # strnlen/strndup may be broken on AIX < 6 depending
# on the libc version, use our own. # on the libc version, use our own.
if test $OSMAJOR -lt 6; then if test $OSMAJOR -lt 6; then

View File

@ -1894,6 +1894,9 @@ case "$host" in
*) RTLD_PRELOAD_VAR="LDR_PRELOAD";; *) RTLD_PRELOAD_VAR="LDR_PRELOAD";;
esac esac
# cfmakeraw is broken on AIX (and is not documented)
: ${ac_cv_func_cfmakeraw='no'}
# strnlen/strndup may be broken on AIX < 6 depending # strnlen/strndup may be broken on AIX < 6 depending
# on the libc version, use our own. # on the libc version, use our own.
if test $OSMAJOR -lt 6; then if test $OSMAJOR -lt 6; then