From 5747d4f7d6c30a021e86d5f8dd73f99f146b7ebf Mon Sep 17 00:00:00 2001 From: Nathan Holstein Date: Sun, 2 Aug 2015 14:54:11 -0400 Subject: [PATCH] Warn when doas.conf doesn't exist. The default error message is confusing, just let the user know the file doesn't exist. --- doas.c | 5 +---- 1 file changed, 1 insertion(+), 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); } -- 2.39.2