]> git.armaanb.net Git - opendoas.git/blobdiff - doas.c
briefly mention /etc/examples/ in the FILES section of all the manual pages that...
[opendoas.git] / doas.c
diff --git a/doas.c b/doas.c
index cbc365796d4e75373fae457b08b20930bfca5074..008132b3a6e0d8c485f040049a973f54cec18040 100644 (file)
--- a/doas.c
+++ b/doas.c
@@ -205,6 +205,8 @@ mygetpwuid_r(uid_t uid, struct passwd *pwd, struct passwd **result)
        static long pwsz = 0;
        size_t buflen;
 
+       *result = NULL;
+
        if (pwsz == 0)
                pwsz = sysconf(_SC_GETPW_R_SIZE_MAX);
 
@@ -323,7 +325,7 @@ main(int argc, char **argv)
        if (geteuid())
                errx(1, "not installed setuid");
 
-       parseconfig("/etc/doas.conf", 1);
+       parseconfig(DOAS_CONF, 1);
 
        /* cmdline is used only for logging, no need to abort on truncate */
        (void)strlcpy(cmdline, argv[0], sizeof(cmdline));