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

Have to hard code default values in help since the defaults

are set _after_ the help stuff.
This commit is contained in:
Todd C. Miller
2000-09-07 01:24:45 +00:00
parent d64ad77515
commit 4f743f06be
2 changed files with 22 additions and 22 deletions

22
configure vendored
View File

@@ -58,15 +58,15 @@ ac_help="$ac_help
ac_help="$ac_help ac_help="$ac_help
--with-logging log via syslog, file, or both" --with-logging log via syslog, file, or both"
ac_help="$ac_help ac_help="$ac_help
--with-logfac syslog facility to log with (default is $logfac)" --with-logfac syslog facility to log with (default is \"local2\")"
ac_help="$ac_help ac_help="$ac_help
--with-goodpri syslog priority for commands (def is $goodpri)" --with-goodpri syslog priority for commands (def is \"notice\")"
ac_help="$ac_help ac_help="$ac_help
--with-badpri syslog priority for failures (def is $badpri)" --with-badpri syslog priority for failures (def is cw\"alert\"badpri)"
ac_help="$ac_help ac_help="$ac_help
--with-logpath path to the sudo log file" --with-logpath path to the sudo log file"
ac_help="$ac_help ac_help="$ac_help
--with-loglen maximum length of a log file line (default is $loglen)" --with-loglen maximum length of a log file line (default is 80)"
ac_help="$ac_help ac_help="$ac_help
--with-ignore-dot ignore '.' in the PATH" --with-ignore-dot ignore '.' in the PATH"
ac_help="$ac_help ac_help="$ac_help
@@ -76,7 +76,7 @@ ac_help="$ac_help
ac_help="$ac_help ac_help="$ac_help
--with-mail-if-noperms send mail if user not allowed to run command" --with-mail-if-noperms send mail if user not allowed to run command"
ac_help="$ac_help ac_help="$ac_help
--with-mailto who should get sudo mail (default is "$mailto")" --with-mailto who should get sudo mail (default is \"root\")"
ac_help="$ac_help ac_help="$ac_help
--with-mailsubject subject of sudo mail" --with-mailsubject subject of sudo mail"
ac_help="$ac_help ac_help="$ac_help
@@ -97,10 +97,10 @@ ac_help="$ac_help
ac_help="$ac_help ac_help="$ac_help
--with-sudoers-gid gid that owns sudoers file (defaults to 0)" --with-sudoers-gid gid that owns sudoers file (defaults to 0)"
ac_help="$ac_help ac_help="$ac_help
--with-umask umask with which the prog should run (default is $sudo_umask) --with-umask umask with which the prog should run (default is 022)
--without-umask Preserves the umask of the user invoking sudo." --without-umask Preserves the umask of the user invoking sudo."
ac_help="$ac_help ac_help="$ac_help
--with-runas-default User to run commands as (default is "root"" --with-runas-default User to run commands as (default is \"root\")"
ac_help="$ac_help ac_help="$ac_help
--with-exempt=group no passwd needed for users in this group" --with-exempt=group no passwd needed for users in this group"
ac_help="$ac_help ac_help="$ac_help
@@ -108,11 +108,11 @@ ac_help="$ac_help
ac_help="$ac_help ac_help="$ac_help
--with-env-editor Use the environment variable EDITOR for visudo" --with-env-editor Use the environment variable EDITOR for visudo"
ac_help="$ac_help ac_help="$ac_help
--with-passwd-tries number of tries to enter password (default is $passwd_tries)" --with-passwd-tries number of tries to enter password (default is 3)"
ac_help="$ac_help ac_help="$ac_help
--with-timeout minutes before sudo asks for passwd again (def is $timeout)" --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)"
ac_help="$ac_help ac_help="$ac_help
--with-password-timeout passwd prompt timeout in minutes (default is $password_timeout)" --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)"
ac_help="$ac_help ac_help="$ac_help
--with-execv use execv() instead of execvp()" --with-execv use execv() instead of execvp()"
ac_help="$ac_help ac_help="$ac_help
@@ -122,7 +122,7 @@ ac_help="$ac_help
ac_help="$ac_help ac_help="$ac_help
--with-all-insults include all the sudo insult sets" --with-all-insults include all the sudo insult sets"
ac_help="$ac_help ac_help="$ac_help
--with-classic-insults include the insults from the "classic" sudo" --with-classic-insults include the insults from the \"classic\" sudo"
ac_help="$ac_help ac_help="$ac_help
--with-csops-insults include CSOps insults" --with-csops-insults include CSOps insults"
ac_help="$ac_help ac_help="$ac_help

View File

@@ -423,7 +423,7 @@ AC_ARG_WITH(logging, [ --with-logging log via syslog, file, or both],
esac], [AC_DEFINE(LOGGING, SLOG_SYSLOG) AC_MSG_RESULT(syslog)]) esac], [AC_DEFINE(LOGGING, SLOG_SYSLOG) AC_MSG_RESULT(syslog)])
AC_MSG_CHECKING(which syslog facility sudo should log with) AC_MSG_CHECKING(which syslog facility sudo should log with)
AC_ARG_WITH(logfac, [ --with-logfac syslog facility to log with (default is $logfac)], AC_ARG_WITH(logfac, [ --with-logfac syslog facility to log with (default is \"local2\")],
[case $with_logfac in [case $with_logfac in
yes) AC_MSG_ERROR(["must give --with-logfac an argument."]) yes) AC_MSG_ERROR(["must give --with-logfac an argument."])
;; ;;
@@ -438,7 +438,7 @@ AC_DEFINE_UNQUOTED(LOGFAC, "$logfac")
AC_MSG_RESULT($logfac) AC_MSG_RESULT($logfac)
AC_MSG_CHECKING(at which syslog priority to log commands) AC_MSG_CHECKING(at which syslog priority to log commands)
AC_ARG_WITH(goodpri, [ --with-goodpri syslog priority for commands (def is $goodpri)], AC_ARG_WITH(goodpri, [ --with-goodpri syslog priority for commands (def is \"notice\")],
[case $with_goodpri in [case $with_goodpri in
yes) AC_MSG_ERROR(["must give --with-goodpri an argument."]) yes) AC_MSG_ERROR(["must give --with-goodpri an argument."])
;; ;;
@@ -454,7 +454,7 @@ AC_DEFINE_UNQUOTED(PRI_SUCCESS, "$goodpri")
AC_MSG_RESULT($goodpri) AC_MSG_RESULT($goodpri)
AC_MSG_CHECKING(at which syslog priority to log failures) AC_MSG_CHECKING(at which syslog priority to log failures)
AC_ARG_WITH(badpri, [ --with-badpri syslog priority for failures (def is $badpri)], AC_ARG_WITH(badpri, [ --with-badpri syslog priority for failures (def is cw\"alert\"badpri)],
[case $with_badpri in [case $with_badpri in
yes) AC_MSG_ERROR(["must give --with-badpri an argument."]) yes) AC_MSG_ERROR(["must give --with-badpri an argument."])
;; ;;
@@ -478,7 +478,7 @@ AC_ARG_WITH(logpath, [ --with-logpath path to the sudo log file],
esac]) esac])
AC_MSG_CHECKING(how long a line in the log file should be) AC_MSG_CHECKING(how long a line in the log file should be)
AC_ARG_WITH(loglen, [ --with-loglen maximum length of a log file line (default is $loglen)], AC_ARG_WITH(loglen, [ --with-loglen maximum length of a log file line (default is 80)],
[case $with_loglen in [case $with_loglen in
yes) AC_MSG_ERROR(["must give --with-loglen an argument."]) yes) AC_MSG_ERROR(["must give --with-loglen an argument."])
;; ;;
@@ -561,7 +561,7 @@ else
fi fi
AC_MSG_CHECKING(who should get the mail that sudo sends) AC_MSG_CHECKING(who should get the mail that sudo sends)
AC_ARG_WITH(mailto, [ --with-mailto who should get sudo mail (default is "$mailto")], AC_ARG_WITH(mailto, [ --with-mailto who should get sudo mail (default is \"root\")],
[case $with_mailto in [case $with_mailto in
yes) AC_MSG_ERROR(["must give --with-mailto an argument."]) yes) AC_MSG_ERROR(["must give --with-mailto an argument."])
;; ;;
@@ -685,7 +685,7 @@ AC_ARG_WITH(sudoers-gid, [ --with-sudoers-gid gid that owns sudoers file (
esac]) esac])
AC_MSG_CHECKING(for umask programs should be run with) AC_MSG_CHECKING(for umask programs should be run with)
AC_ARG_WITH(umask, [ --with-umask umask with which the prog should run (default is $sudo_umask) AC_ARG_WITH(umask, [ --with-umask umask with which the prog should run (default is 022)
--without-umask Preserves the umask of the user invoking sudo.], --without-umask Preserves the umask of the user invoking sudo.],
[case $with_umask in [case $with_umask in
yes) AC_MSG_ERROR(["must give --with-umask an argument."]) yes) AC_MSG_ERROR(["must give --with-umask an argument."])
@@ -708,7 +708,7 @@ else
fi fi
AC_MSG_CHECKING(for default user to run commands as) AC_MSG_CHECKING(for default user to run commands as)
AC_ARG_WITH(runas-default, [ --with-runas-default User to run commands as (default is "root"], AC_ARG_WITH(runas-default, [ --with-runas-default User to run commands as (default is \"root\")],
[case $with_runas_default in [case $with_runas_default in
yes) AC_MSG_ERROR(["must give --with-runas-default an argument."]) yes) AC_MSG_ERROR(["must give --with-runas-default an argument."])
;; ;;
@@ -762,7 +762,7 @@ else
fi fi
AC_MSG_CHECKING(number of tries a user gets to enter their password) AC_MSG_CHECKING(number of tries a user gets to enter their password)
AC_ARG_WITH(passwd-tries, [ --with-passwd-tries number of tries to enter password (default is $passwd_tries)], AC_ARG_WITH(passwd-tries, [ --with-passwd-tries number of tries to enter password (default is 3)],
[case $with_passwd_tries in [case $with_passwd_tries in
yes) ;; yes) ;;
no) AC_MSG_ERROR(["--without-editor not supported."]) no) AC_MSG_ERROR(["--without-editor not supported."])
@@ -776,7 +776,7 @@ AC_DEFINE_UNQUOTED(TRIES_FOR_PASSWORD, $passwd_tries)
AC_MSG_RESULT($passwd_tries) AC_MSG_RESULT($passwd_tries)
AC_MSG_CHECKING(time in minutes after which sudo will ask for a password again) AC_MSG_CHECKING(time in minutes after which sudo will ask for a password again)
AC_ARG_WITH(timeout, [ --with-timeout minutes before sudo asks for passwd again (def is $timeout)], AC_ARG_WITH(timeout, [ --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)],
[echo $with_timeout; case $with_timeout in [echo $with_timeout; case $with_timeout in
yes) ;; yes) ;;
no) timeout=0 no) timeout=0
@@ -790,7 +790,7 @@ AC_DEFINE_UNQUOTED(TIMEOUT, $timeout)
AC_MSG_RESULT($timeout) AC_MSG_RESULT($timeout)
AC_MSG_CHECKING(time in minutes after the password prompt will time out) AC_MSG_CHECKING(time in minutes after the password prompt will time out)
AC_ARG_WITH(password-timeout, [ --with-password-timeout passwd prompt timeout in minutes (default is $password_timeout)], AC_ARG_WITH(password-timeout, [ --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)],
[case $with_password_timeout in [case $with_password_timeout in
yes) ;; yes) ;;
no) password_timeout=0 no) password_timeout=0
@@ -862,7 +862,7 @@ AC_ARG_WITH(all-insults, [ --with-all-insults include all the sudo insult
;; ;;
esac]) esac])
AC_ARG_WITH(classic-insults, [ --with-classic-insults include the insults from the "classic" sudo], AC_ARG_WITH(classic-insults, [ --with-classic-insults include the insults from the \"classic\" sudo],
[case $with_classic_insults in [case $with_classic_insults in
yes) AC_DEFINE(CLASSIC_INSULTS) yes) AC_DEFINE(CLASSIC_INSULTS)
;; ;;