@@ -205,7 +205,7 @@ logfac=auth
205205goodpri=notice
206206badpri=alert
207207loglen=80
208- ignore_dot=off
208+ ignore_dot=on
209209mail_no_user=on
210210mail_no_host=off
211211mail_no_perms=off
@@ -444,9 +444,7 @@ AC_ARG_WITH(csops, [AS_HELP_STRING([--with-csops], [add CSOps standard options])
444444[ case $with_csops in
445445 yes) AC_MSG_NOTICE ( [ adding CSOps standard options] )
446446 CHECKSIA=false
447- with_ignore_dot=yes
448447 insults=on
449- with_env_editor=yes
450448 : ${mansectsu='8'}
451449 : ${mansectform='5'}
452450 : ${mansectmisc='7'}
@@ -665,16 +663,7 @@ AC_ARG_WITH(loglen, [AS_HELP_STRING([--with-loglen], [maximum length of a log fi
665663esac] )
666664AC_DEFINE_UNQUOTED ( MAXLOGFILELEN , $loglen , [ The max number of chars per log file line (for line wrapping).] )
667665
668- AC_ARG_WITH ( ignore-dot , [ AS_HELP_STRING ( [ --with-ignore-dot] , [ ignore '.' in the PATH] ) ] ,
669- [ case $with_ignore_dot in
670- yes) ignore_dot=on
671- AC_DEFINE ( IGNORE_DOT_PATH )
672- ;;
673- no) ignore_dot=off
674- ;;
675- *) AC_MSG_ERROR ( [ --with-ignore-dot does not take an argument.] )
676- ;;
677- esac] )
666+ AC_ARG_WITH ( ignore-dot , [ AS_HELP_STRING ( [ --with-ignore-dot] , [ deprecated, use --disable-ignore-dot] ) ] , [ enable_ignore_dot="$with_ignore_dot"] )
678667
679668AC_ARG_WITH ( mail-if-no-user , [ AS_HELP_STRING ( [ --without-mail-if-no-user] , [ do not send mail if user not in sudoers] ) ] ,
680669[ case $with_mail_if_no_user in
@@ -1279,6 +1268,19 @@ AC_ARG_ENABLE(env_debug,
12791268 esac
12801269] )
12811270
1271+ AC_ARG_ENABLE ( ignore-dot ,
1272+ [ AS_HELP_STRING ( [ --disable-ignore-dot] , [ allow '.' and "" in the PATH] ) ] ,
1273+ [ case "$enableval" in
1274+ yes) ignore_dot=on
1275+ ;;
1276+ no) ignore_dot=off
1277+ AC_DEFINE ( ALLOW_DOT_PATH )
1278+ ;;
1279+ *) AC_MSG_WARN ( [ ignoring unknown argument to --enable-ignore-dot: $enableval] )
1280+ ;;
1281+ esac
1282+ ] )
1283+
12821284AC_ARG_ENABLE ( postinstall ,
12831285[ AS_HELP_STRING ( [ --enable-postinstall] , [ Script to run after the install phase] ) ] ,
12841286[ case "$enableval" in
@@ -1384,7 +1386,7 @@ AC_ARG_ENABLE(leaks,
13841386 yes) ;;
13851387 no) AC_DEFINE ( NO_LEAKS )
13861388 ;;
1387- *) AC_MSG_WARN ( [ ignoring unknown argument to --disable -leaks: $enableval] )
1389+ *) AC_MSG_WARN ( [ ignoring unknown argument to --enable -leaks: $enableval] )
13881390 ;;
13891391 esac
13901392] )
@@ -4759,7 +4761,7 @@ AH_TEMPLATE(HAVE_ST_MTIMESPEC, [Define to 1 if your struct stat has an st_mtimes
47594761AH_TEMPLATE ( HAVE_ST_NMTIME , [ Define to 1 if your struct stat has an st_nmtime member.] )
47604762AH_TEMPLATE ( HAVE___PROGNAME , [ Define to 1 if your crt0.o defines the __progname symbol for you.] )
47614763AH_TEMPLATE ( HOST_IN_LOG , [ Define to 1 if you want the hostname to be entered into the log file.] )
4762- AH_TEMPLATE ( IGNORE_DOT_PATH , [ Define to 1 if you want to ignore '.' and empty PATH elements .] )
4764+ AH_TEMPLATE ( ALLOW_DOT_PATH , [ Define to 1 if you want sudo to honor '.' and "" in the PATH .] )
47634765AH_TEMPLATE ( LOGGING , [ Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH.] )
47644766AH_TEMPLATE ( LONG_OTP_PROMPT , [ Define to 1 if you want a two line OTP (S/Key or OPIE) prompt.] )
47654767AH_TEMPLATE ( NO_AUTHENTICATION , [ Define to 1 if you don't want sudo to prompt for a password by default.] )
0 commit comments