opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit d8c2180a36392d73b0d00de704d8811af0bf2e5c
parent f0fa08cd6ba71c84495fa93fede52a7536f047c8
Author: tedu <tedu>
Date:   Sat, 27 May 2017 09:51:07 +0000

for password failure, print Authorization failed instead of EPERM. will make things less confusing with commands rejected by config file.

Diffstat:
Mdoas.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doas.c b/doas.c @@ -242,7 +242,7 @@ authuser(char *myname, char *login_style, int persist) if (!auth_userresponse(as, response, 0)) { syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed auth for %s", myname); - errc(1, EPERM, NULL); + errx(1, "Authorization failed"); } explicit_bzero(rbuf, sizeof(rbuf)); good: