commit 5747d4f7d6c30a021e86d5f8dd73f99f146b7ebf
parent 0c99b3ad0c8dda90c1cb1c230aeb46d7a78c5141
Author: Nathan Holstein <nathan.holstein@gmail.com>
Date: Sun, 2 Aug 2015 14:54:11 -0400
Warn when doas.conf doesn't exist.
The default error message is confusing, just let the user know the file
doesn't exist.
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git 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);
}