summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2015-08-12 15:59:53 +0000
committerespie <espie@openbsd.org>2015-08-12 15:59:53 +0000
commit63f5a403b22fccb45784fe8042a3d9212eb53779 (patch)
treec9d47b958b0383e786e2a5dfbe94351e8f462756
parentstart replacing some \*([GL]t; (diff)
downloadwireguard-openbsd-63f5a403b22fccb45784fe8042a3d9212eb53779.tar.xz
wireguard-openbsd-63f5a403b22fccb45784fe8042a3d9212eb53779.zip
more explicit warnings. Okay tedu@
-rw-r--r--usr.bin/doas/doas.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c
index 6db26d67bb0..d1e32bc8c6d 100644
--- a/usr.bin/doas/doas.c
+++ b/usr.bin/doas/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.34 2015/08/03 15:31:05 tedu Exp $ */
+/* $OpenBSD: doas.c,v 1.35 2015/08/12 15:59:53 espie Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -163,9 +163,9 @@ parseconfig(const char *filename, int checkperms)
yyfp = fopen(filename, "r");
if (!yyfp) {
if (checkperms)
- fprintf(stderr, "doas is not enabled.\n");
+ warn("doas is not enabled, %s", filename);
else
- warn("could not open config file");
+ warn("could not open config file %s", filename);
exit(1);
}