From d8c2180a36392d73b0d00de704d8811af0bf2e5c Mon Sep 17 00:00:00 2001 From: tedu Date: Sat, 27 May 2017 09:51:07 +0000 Subject: [PATCH] for password failure, print Authorization failed instead of EPERM. will make things less confusing with commands rejected by config file. --- doas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2