aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2015-04-14 07:55:23 -0500
committerBrent Cook <busterb@gmail.com>2015-04-14 07:55:23 -0500
commit3096ab0e45351b05b1f1df51cedc183ba6ca7763 (patch)
tree01cb87f1fd541907d481311064bdab5d2cdf3691 /configure.ac
parentfe3f7fc6365bfaac3418a72256b8c11603e80cbf (diff)
downloadportable-3096ab0e45351b05b1f1df51cedc183ba6ca7763.tar.gz
portable-3096ab0e45351b05b1f1df51cedc183ba6ca7763.tar.bz2
portable-3096ab0e45351b05b1f1df51cedc183ba6ca7763.zip
remove issetuigid wrappers, now that all getenv calls are gone.
From deraadt@ upstream: Remove all getenv() calls, especially those wrapped by issetugid(). getenv()'s wrapped by issetugid() are safe, but issetugid() is ... difficult to impliment on many operating systems. By accident, a grand experiment was run over the last year, where issetugid() returned 1 (the safe value) on a few operating systems. Noone noticed & complained that certain environment variables were not working.......
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 1 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 75a1ec2..2cd9814 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,7 +220,7 @@ CFLAGS="$save_cflags $AM_CFLAGS"
220AM_PROG_AS 220AM_PROG_AS
221 221
222AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval]) 222AC_CHECK_FUNCS([arc4random_buf asprintf explicit_bzero funopen getauxval])
223AC_CHECK_FUNCS([getentropy issetugid memmem poll reallocarray]) 223AC_CHECK_FUNCS([getentropy memmem poll reallocarray])
224AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum]) 224AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum])
225AC_CHECK_FUNCS([symlink]) 225AC_CHECK_FUNCS([symlink])
226AC_CHECK_FUNCS([timingsafe_bcmp timingsafe_memcmp]) 226AC_CHECK_FUNCS([timingsafe_bcmp timingsafe_memcmp])
@@ -230,7 +230,6 @@ AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], [test "x$ac_cv_func_arc4random_buf" = xyes
230AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes]) 230AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes])
231AM_CONDITIONAL([HAVE_EXPLICIT_BZERO], [test "x$ac_cv_func_explicit_bzero" = xyes]) 231AM_CONDITIONAL([HAVE_EXPLICIT_BZERO], [test "x$ac_cv_func_explicit_bzero" = xyes])
232AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = xyes]) 232AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = xyes])
233AM_CONDITIONAL([HAVE_ISSETUGID], [test "x$ac_cv_func_issetugid" = xyes])
234AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes]) 233AM_CONDITIONAL([HAVE_MEMMEM], [test "x$ac_cv_func_memmem" = xyes])
235AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes]) 234AM_CONDITIONAL([HAVE_POLL], [test "x$ac_cv_func_poll" = xyes])
236AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes]) 235AM_CONDITIONAL([HAVE_REALLOCARRAY], [test "x$ac_cv_func_reallocarray" = xyes])
@@ -251,11 +250,6 @@ AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF],
251 -a "x$HOST_OS" != xnetbsd \ 250 -a "x$HOST_OS" != xnetbsd \
252 -a "x$ac_cv_func_arc4random_buf" = xyes]) 251 -a "x$ac_cv_func_arc4random_buf" = xyes])
253 252
254# overrides for issetugid implementations with known issues
255AM_CONDITIONAL([HAVE_ISSETUGID],
256 [test "x$HOST_OS" != xdarwin \
257 -a "x$ac_cv_func_issetugid" = xyes])
258
259AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [ 253AC_CACHE_CHECK([whether va_copy exists], ac_cv_have_va_copy, [
260 AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 254 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
261#include <stdarg.h> 255#include <stdarg.h>