From: tedu Date: Sat, 27 May 2017 09:51:07 +0000 (+0000) Subject: for password failure, print Authorization failed instead of EPERM. will make things... X-Git-Tag: v6.6~62 X-Git-Url: https://git.armaanb.net/?a=commitdiff_plain;h=d8c2180a36392d73b0d00de704d8811af0bf2e5c;hp=f0fa08cd6ba71c84495fa93fede52a7536f047c8;p=opendoas.git for password failure, print Authorization failed instead of EPERM. will make things less confusing with commands rejected by config file. --- diff --git a/doas.c b/doas.c index b6a7bc1..b7248f0 100644 --- 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: