mirror of
https://github.com/slicer69/doas
synced 2024-07-23 19:24:18 +00:00
Updated doas.c with patch from arthepsy. Fixes -n flag
so if a password prompt is required, doas will automatically fail.
This commit is contained in:
parent
4bd6c1c178
commit
fe6d3a342b
2
doas.c
2
doas.c
|
@ -418,10 +418,10 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (!(rule->options & NOPASS)) {
|
||||
#if defined(USE_BSD_AUTH)
|
||||
if (nflag)
|
||||
errx(1, "Authorization required");
|
||||
|
||||
#if defined(USE_BSD_AUTH)
|
||||
authuser(myname, login_style, rule->options & PERSIST);
|
||||
#elif defined(USE_PAM)
|
||||
#define PAM_END(msg) do { \
|
||||
|
|
Loading…
Reference in a new issue