]> granicus.if.org Git - sudo/commit
If passwd_tries is less than 1, check_user() will always return
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 14 Nov 2017 20:58:35 +0000 (13:58 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 14 Nov 2017 20:58:35 +0000 (13:58 -0700)
commita62cd4b4fe25eda6f99d73d7277a6db90a36337c
treee475b24d8b79305e21cfa244adf6c1717e36f916
parent4e8c037f22e1bf2b78fa85614e16d206f11ab7a1
If passwd_tries is less than 1, check_user() will always return
false (since the user didn't authenticate).  The normal reason for
this is an authentication error but in this case no authentication
was tries so no warning message has been displayed to the user.  If
the user wasn't given a chance to authenticate, set inform_user to
true when calling log_denial() from sudoers_policy_main().

An alternate approach would be for check_user() to return true
in this case but seems more confusing.
plugins/sudoers/sudoers.c