2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Adjust code for --without-lecture to match new values.

This commit is contained in:
Todd C. Miller 2003-12-30 22:34:28 +00:00
parent e34adcc2c3
commit ffbc43afb3
2 changed files with 8 additions and 8 deletions

8
configure vendored
View File

@ -1391,7 +1391,7 @@ password_timeout=5
sudo_umask=0022
passprompt="Password:"
long_otp_prompt=off
lecture=on
lecture=once
logfac=local2
goodpri=notice
badpri=alert
@ -1920,9 +1920,9 @@ echo $ECHO_N "checking whether to lecture users the first time they run sudo...
if test "${with_lecture+set}" = set; then
withval="$with_lecture"
case $with_lecture in
yes|short) lecture=on
yes|short|always) lecture=once
;;
no|none) lecture=off
no|none|never) lecture=never
;;
*) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
@ -1930,7 +1930,7 @@ echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;
;;
esac
fi;
if test "$lecture" = "on"; then
if test "$lecture" = "once"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else

View File

@ -68,7 +68,7 @@ password_timeout=5
sudo_umask=0022
passprompt="Password:"
long_otp_prompt=off
lecture=on
lecture=once
logfac=local2
goodpri=notice
badpri=alert
@ -392,14 +392,14 @@ esac])
AC_MSG_CHECKING(whether to lecture users the first time they run sudo)
AC_ARG_WITH(lecture, [ --without-lecture don't print lecture for first-time sudoer],
[case $with_lecture in
yes|short) lecture=on
yes|short|always) lecture=once
;;
no|none) lecture=off
no|none|never) lecture=never
;;
*) AC_MSG_ERROR(["unknown argument to --with-lecture: $with_lecture"])
;;
esac])
if test "$lecture" = "on"; then
if test "$lecture" = "once"; then
AC_MSG_RESULT(yes)
else
AC_DEFINE(NO_LECTURE, 1, [Define if you don't want users to get the lecture the first they user sudo.])