]> git.armaanb.net Git - opendoas.git/commitdiff
Warn when doas.conf doesn't exist.
authorNathan Holstein <nathan.holstein@gmail.com>
Sun, 2 Aug 2015 18:54:11 +0000 (14:54 -0400)
committerNathan Holstein <nathan.holstein@gmail.com>
Wed, 5 Aug 2015 12:58:17 +0000 (08:58 -0400)
The default error message is confusing, just let the user know the file
doesn't exist.

doas.c

diff --git a/doas.c b/doas.c
index 9862520852a4bd1be6bf285e958820368aef7d6f..9384f55417d5b13e454d4bba8f82ac54b8eca514 100644 (file)
--- 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);
        }