On macOS, don't disable tty tickets and set password timeout to 0.

This more closely matches the options used by the macOS version of sudo.
This commit is contained in:
Todd C. Miller
2021-08-02 11:11:05 -06:00
parent d1c29fb008
commit 57cb62d7dc

View File

@@ -220,7 +220,6 @@ case "$osversion" in
--with-editor=/bin/vi --with-editor=/bin/vi
--with-env-editor --with-env-editor
--with-ignore-dot --with-ignore-dot
--with-tty-tickets
--with-ldap --with-ldap
--with-passprompt=[sudo] password for %p: --with-passprompt=[sudo] password for %p:
--with-sendmail=/usr/sbin/sendmail --with-sendmail=/usr/sbin/sendmail
@@ -253,7 +252,6 @@ case "$osversion" in
--with-logfac=auth --with-logfac=auth
--with-all-insults --with-all-insults
--with-ignore-dot --with-ignore-dot
--with-tty-tickets
--enable-shell-sets-home --enable-shell-sets-home
--with-sudoers-mode=0440 --with-sudoers-mode=0440
--with-pam --with-pam
@@ -368,7 +366,7 @@ case "$osversion" in
# Note, must indent with tabs, not spaces due to IFS trickery # Note, must indent with tabs, not spaces due to IFS trickery
configure_opts="--with-pam configure_opts="--with-pam
--with-bsm-audit --with-bsm-audit
--without-tty-tickets --with-password-timeout=0
--enable-zlib=system --enable-zlib=system
--with-ldap --with-ldap
--with-insults=disabled --with-insults=disabled