aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Holstein <nathan.holstein@gmail.com>2015-08-02 14:54:11 -0400
committerNathan Holstein <nathan.holstein@gmail.com>2015-08-05 08:58:17 -0400
commit5747d4f7d6c30a021e86d5f8dd73f99f146b7ebf (patch)
tree7bb2424b557d4d9076e07734f8c34a3cfd6f76b4
parent0c99b3ad0c8dda90c1cb1c230aeb46d7a78c5141 (diff)
downloadopendoas-5747d4f7d6c30a021e86d5f8dd73f99f146b7ebf.tar.gz
Warn when doas.conf doesn't exist.
The default error message is confusing, just let the user know the file doesn't exist.
-rw-r--r--doas.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/doas.c b/doas.c
index 9862520..9384f55 100644
--- a/doas.c
+++ b/doas.c
@@ -162,10 +162,7 @@ parseconfig(const char *filename, int checkperms)
yyfp = fopen(filename, "r");
if (!yyfp) {
- if (checkperms)
- fprintf(stderr, "doas is not enabled.\n");
- else
- warn("could not open config file");
+ warn("could not open config file");
exit(1);
}