From: Todd C. Miller Date: Wed, 23 Jan 2008 11:33:27 +0000 (+0000) Subject: Use SUDO_DEFINE_UNQUOTED instead of AC_DEFINE_UNQUOTED to prevent X-Git-Tag: SUDO_1_7_0~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0dc1caa4533c5aeef62a456864e25bb2eadf975;p=sudo Use SUDO_DEFINE_UNQUOTED instead of AC_DEFINE_UNQUOTED to prevent ldap.conf and ldap.secret paths from going into config.h. Avoid single quotes in variable expansion when using SUDO_DEFINE_UNQUOTED since in some versions of bash they will end up literally in the resulting define. --- diff --git a/configure b/configure index dc5f17f47..f08c1805c 100755 --- a/configure +++ b/configure @@ -3562,7 +3562,7 @@ if test ${with_nsswitch-"yes"} != "no"; then #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}" EOF - nsswitch_conf=${with_nsswitch-'/etc/nsswitch.conf'} + nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf} else nsswitch_conf='/etc/nsswitch.conf' fi @@ -3591,10 +3591,9 @@ if test "${with_ldap_conf_file+set}" = set; then withval=$with_ldap_conf_file; fi - -cat >>confdefs.h <<_ACEOF -#define _PATH_LDAP_CONF "${with_ldap_conf_file-'/etc/ldap.conf'}" -_ACEOF +cat >>confdefs.h <>confdefs.h <<_ACEOF -#define _PATH_LDAP_SECRET "${with_ldap_secret_file-'/etc/ldap.secret'}" -_ACEOF +cat >>confdefs.h < conftest.$ac_ext + echo '#line 6134 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -7677,11 +7675,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7680: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7678: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7684: \$? = $ac_status" >&5 + echo "$as_me:7682: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7967,11 +7965,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7970: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7968: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7974: \$? = $ac_status" >&5 + echo "$as_me:7972: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8071,11 +8069,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8074: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8072: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8078: \$? = $ac_status" >&5 + echo "$as_me:8076: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -10416,7 +10414,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <