]> git.armaanb.net Git - opendoas.git/commitdiff
for password failure, print Authorization failed instead of EPERM. will make things...
authortedu <tedu>
Sat, 27 May 2017 09:51:07 +0000 (09:51 +0000)
committerDuncaen <mail@duncano.de>
Mon, 11 Dec 2017 15:30:31 +0000 (16:30 +0100)
doas.c

diff --git a/doas.c b/doas.c
index b6a7bc10fee24bc7adfa9d63c63399d3f087f09d..b7248f0cf7145276bea201884020519f43a940eb 100644 (file)
--- 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: