diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-08 02:54:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-08 02:54:54 +0000 |
commit | d8ac1b937647b86342135a91abe933a3f8812909 (patch) | |
tree | 927f10ec6ac6ad54a21787b27d1dd8a410b9767a | |
parent | bd37ad7bfae8c9b25a9eef1e1ce9b7c17d1f5257 (diff) | |
download | cmogstored-d8ac1b937647b86342135a91abe933a3f8812909.tar.gz |
Maybe some weird users do not have PATH
-rw-r--r-- | cfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) */ |