diff options
author | 2015-08-12 15:59:53 +0000 | |
---|---|---|
committer | 2015-08-12 15:59:53 +0000 | |
commit | 63f5a403b22fccb45784fe8042a3d9212eb53779 (patch) | |
tree | c9d47b958b0383e786e2a5dfbe94351e8f462756 | |
parent | start replacing some \*([GL]t; (diff) | |
download | wireguard-openbsd-63f5a403b22fccb45784fe8042a3d9212eb53779.tar.xz wireguard-openbsd-63f5a403b22fccb45784fe8042a3d9212eb53779.zip |
more explicit warnings. Okay tedu@
-rw-r--r-- | usr.bin/doas/doas.c | 6 |
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); } |