mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 18:08:23 +00:00
Adjust code for --without-lecture to match new values.
This commit is contained in:
parent
e34adcc2c3
commit
ffbc43afb3
8
configure
vendored
8
configure
vendored
@ -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
|
||||
|
@ -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.])
|
||||
|
Loading…
x
Reference in New Issue
Block a user