summaryrefslogtreecommitdiff
path: root/nslcd
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-12-15 16:25:40 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-12-15 16:25:40 -0500
commitc9ddd1e5177bbc4b163a9a2e1faf4c49bd7af161 (patch)
tree06092413c14616a70a278b45027bfe967cf98d60 /nslcd
parent65d86148ccb391ec57cf7715f9d295c22e148f70 (diff)
fix nslcd.conf parsing (I hope)
Diffstat (limited to 'nslcd')
-rw-r--r--nslcd/cfg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
index 086427c..cd5b213 100644
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -520,11 +520,6 @@ static void cfg_read(const char *filename, struct nslcd_config *cfg)
/* get keyword from line and ignore empty lines */
if (get_token(&line, keyword, sizeof(keyword)) == NULL)
continue;
- /* main options */
- if (strcasecmp(keyword, "yamldir") == 0)
- {
- handle_yamldir(filename, lnr, keyword, line, cfg);
- }
/* runtime options */
if (strcasecmp(keyword, "threads") == 0)
{
@@ -535,6 +530,11 @@ static void cfg_read(const char *filename, struct nslcd_config *cfg)
{
handle_log(filename, lnr, keyword, line);
}
+ /* general connection options */
+ else if (strcasecmp(keyword, "yamldir") == 0)
+ {
+ handle_yamldir(filename, lnr, keyword, line, cfg);
+ }
/* other options */
else if (strcasecmp(keyword, "pagesize") == 0)
{