From: Todd C. Miller Date: Thu, 10 Jun 2010 21:19:45 +0000 (-0400) Subject: Attempt to handle a default password prompt timeout of zero more gracefully. X-Git-Tag: SUDO_1_7_3~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89aabc110462a35a6c862038d8dacdd099a46b14;p=sudo Attempt to handle a default password prompt timeout of zero more gracefully. --HG-- branch : 1.7 --- diff --git a/sudo.man.pl b/sudo.man.pl index 2306c7c0f..e8e6125af 100644 --- a/sudo.man.pl +++ b/sudo.man.pl @@ -7,7 +7,7 @@ BEGIN { # Initialize the numeric register we use for conditionals if ($cond == -1) { - $_ = ".nr SL \@SEMAN\@\n.nr BA \@BAMAN\@\n.nr LC \@LCMAN\@\n.\\\"\n$_"; + $_ = ".nr SL \@SEMAN\@\n.nr BA \@BAMAN\@\n.nr LC \@LCMAN\@\n.nr PT \@password_timeout\@\n.\\\"\n$_"; $cond = 0; } @@ -30,3 +30,6 @@ if (/-a.*auth_type/) { # Fix up broken pod2man formatting of F<@foo@/bar> s/\\fI\\f(\(C)?I\@([^\@]*)\\fI\@/\\fI\@$2\@/g; + +# Try to deal sensibly with password_timeout being set to 0 by default +s/([^ ]*\@password_timeout\@[^ ]* minutes.$)/\n.ie \\n(PT $1\n.el unlimited./; diff --git a/sudo.pod b/sudo.pod index 9d975a680..427527c79 100644 --- a/sudo.pod +++ b/sudo.pod @@ -75,10 +75,10 @@ is implied. B determines who is an authorized user by consulting the file F<@sysconfdir@/sudoers>. By running B with the B<-v> option, -a user can update the time stamp without running a I. The -password prompt itself will also time out if the user's password -is not entered within C<@password_timeout@> minutes (unless overridden -via I). +a user can update the time stamp without running a I. If +a password is required, B will exit if the user's password +is not entered within a configurable time limit. The default +password prompt timeout is C<@password_timeout@> minutes. If a user who is not listed in the I file tries to run a command via B, mail is sent to the proper authorities, as