From dce98a5e9eef2c5f5c4313a4effdf28a99eaec2f Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 26 Jul 2013 15:21:28 +0200 Subject: Fix errors in invalidator changes This fixes a few typos and an omission in the configuration file parsing code. --- nslcd/cfg.c | 2 ++ nslcd/invalidator.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'nslcd') 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 -- cgit v1.2.3