about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--cfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cfg.c b/cfg.c
index a21aac2..428729f 100644
--- a/cfg.c
+++ b/cfg.c
@@ -127,6 +127,10 @@ static void validate_daemonize(struct mog_cfg *cli)
         if (!nerr)
                 mog_cfg_validate_daemon(cli, &nerr);
 
+        /* we may use confstr(_CS_PATH) in the future, currently we do not */
+        if (!path)
+                die("PATH environment must be set");
+
         p = path;
 
         /* trailing ':' in PATH is identical to trailing ":." (cwd) */