no) echo "Sorry, --without-loglen not supported."
exit 1
;;
- [0-9]*) AC_DEFINE_UNQUOTED(MAXLOGFILELEN, $with_loglen)
+ [[0-9]]*) AC_DEFINE_UNQUOTED(MAXLOGFILELEN, $with_loglen)
AC_MSG_RESULT([$with_loglen])
;;
*) echo "You must enter a number, not $with_loglen"
no) echo "Sorry, --without-sudoers-mode not supported."
exit 1
;;
- [0-9]*) SUDOERS_MODE=$with_sudoers_mode
+ [[0-9]]*) SUDOERS_MODE=$with_sudoers_mode
;;
*) echo "You must use a numeric uid, not a name."
exit 1
no) echo "Sorry, --without-sudoers-uid not supported."
exit 1
;;
- [0-9]*) SUDOERS_UID=$with_sudoers_uid
+ [[0-9]]*) SUDOERS_UID=$with_sudoers_uid
;;
*) echo "You must use a numeric uid, not a name."
exit 1
no) echo "Sorry, --without-sudoers-gid not supported."
exit 1
;;
- [0-9]*) SUDOERS_GID=$with_sudoers_gid
+ [[0-9]]*) SUDOERS_GID=$with_sudoers_gid
;;
*) echo "You must use a numeric gid, not a name."
exit 1
;;
no) AC_MSG_RESULT(user)
;;
- [0-9]*) AC_DEFINE_UNQUOTED(SUDO_UMASK, "$with_umask")
+ [[0-9]]*) AC_DEFINE_UNQUOTED(SUDO_UMASK, "$with_umask")
AC_MSG_RESULT([$with_umask])
;;
*) echo "You must enter a numeric mask."
no) echo "Sorry, --without-editor not supported."
exit 1
;;
- [1-9]*) AC_DEFINE_UNQUOTED(TRIES_FOR_PASSWORD, $with_passwd_tries)
+ [[1-9]]*) AC_DEFINE_UNQUOTED(TRIES_FOR_PASSWORD, $with_passwd_tries)
AC_MSG_RESULT([$with_passwd_tries])
;;
*) echo "You must enter the numer of tries, > 0"
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 5)],
-[case $with_timeout in
+[echo $with_timeout; case $with_timeout in
yes) AC_DEFINE(TIMEOUT, 5)
AC_MSG_RESULT(5)
;;
no) AC_DEFINE(TIMEOUT, 0)
AC_MSG_RESULT([no timeout])
;;
- [0-9]*) AC_DEFINE_UNQUOTED(TIMEOUT, $with_timeout)
+ [[0-9]]*) AC_DEFINE_UNQUOTED(TIMEOUT, $with_timeout)
AC_MSG_RESULT([$with_timeout])
;;
*) echo "You must enter the numer of minutes."
no) AC_DEFINE(PASSWORD_TIMEOUT, 0)
AC_MSG_RESULT([no timeout])
;;
- [0-9]*) AC_DEFINE_UNQUOTED(PASSWORD_TIMEOUT, $with_password_timeout)
+ [[0-9]]*) AC_DEFINE_UNQUOTED(PASSWORD_TIMEOUT, $with_password_timeout)
AC_MSG_RESULT([$with_timeout])
;;
*) echo "You must enter the numer of minutes."