about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-02-08 02:54:54 +0000
committerEric Wong <normalperson@yhbt.net>2013-02-08 02:54:54 +0000
commitd8ac1b937647b86342135a91abe933a3f8812909 (patch)
tree927f10ec6ac6ad54a21787b27d1dd8a410b9767a
parentbd37ad7bfae8c9b25a9eef1e1ce9b7c17d1f5257 (diff)
downloadcmogstored-d8ac1b937647b86342135a91abe933a3f8812909.tar.gz
Maybe some weird users do not have PATH
-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) */