summaryrefslogtreecommitdiff
path: root/usr.bin/doas
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-12-08 14:45:37 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-12-08 14:45:37 +0000
commit3c161b783ef5b9f50ec5254b84b6a558c74383f6 (patch)
tree1ca44a4a866ca8d4ddd2741114832e8e0d3b4b21 /usr.bin/doas
parenta785e375914442284a073f07d4221004ee1849bd (diff)
semarie noticed that auth failures don't set errno. just print a generic
message and leave it to the user to find the tea leaves.
Diffstat (limited to 'usr.bin/doas')
-rw-r--r--usr.bin/doas/doas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c
index da7f8ff4de7..e71b221a9dc 100644
--- a/usr.bin/doas/doas.c
+++ b/usr.bin/doas/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.47 2015/12/08 13:39:40 sthen Exp $ */
+/* $OpenBSD: doas.c,v 1.48 2015/12/08 14:45:36 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -419,7 +419,7 @@ main(int argc, char **argv, char **envp)
if (!(as = auth_userchallenge(myname, login_style, "auth-doas",
&challenge)))
- err(1, "auth challenge failed");
+ errx(1, "Authorization failed");
if (!challenge) {
char host[HOST_NAME_MAX + 1];
if (gethostname(host, sizeof(host)))