diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-26 15:21:28 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-26 17:33:09 +0200 |
commit | dce98a5e9eef2c5f5c4313a4effdf28a99eaec2f (patch) | |
tree | c2b28a5c28ba52241a09e897ef5a66565e066740 /nslcd | |
parent | e1b0399ee018d217cd50267cef03c28dfdb32fbf (diff) |
Fix errors in invalidator changes
This fixes a few typos and an omission in the configuration file parsing
code.
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/cfg.c | 2 | ||||
-rw-r--r-- | nslcd/invalidator.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c index ec1237c..f4b051f 100644 --- a/nslcd/cfg.c +++ b/nslcd/cfg.c @@ -490,6 +490,8 @@ static enum ldap_map_selector parse_map(const char *value) return LM_SERVICES; else if (strcasecmp(value, "shadow") == 0) return LM_SHADOW; + else if (strcasecmp(value, "nfsidmap") == 0) + return LM_NFSIDMAP; /* unknown map */ return LM_NONE; } diff --git a/nslcd/invalidator.c b/nslcd/invalidator.c index 03584eb..54a8f95 100644 --- a/nslcd/invalidator.c +++ b/nslcd/invalidator.c @@ -250,8 +250,8 @@ void invalidator_do(enum ldap_map_selector map) if (map == LM_NONE) { for (map = 0; map < LM_NONE ; map++) - invalidator_do(map); if (nslcd_cfg->reconnect_invalidate[map]) + invalidator_do(map); return; } /* write a single byte which should be atomic and not fill the PIPE |