]> granicus.if.org Git - sudo/commitdiff
Adjust code for --without-lecture to match new values.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Dec 2003 22:34:28 +0000 (22:34 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Dec 2003 22:34:28 +0000 (22:34 +0000)
configure
configure.in

index 23d6319d25e4cc6fd55f2bda794fa6b43dab2547..ea767bbf9a03b2379daf8e3927ceb9137bd20a6b 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
index 329f4779ad792979c9e25fff583f18e48504db39..4534de82997745d720e4d58076e134ac86f716fa 100644 (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.])