From f18399059842cbee0286ef92ed682b41b08abd09 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 14 Jun 2010 21:49:27 +0100 Subject: [PATCH] userdb nss: Default to blocking=yes. --HG-- branch : HEAD --- src/auth/userdb-nss.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/auth/userdb-nss.c b/src/auth/userdb-nss.c index 04e3fdc4c9..1cab74cc86 100644 --- a/src/auth/userdb-nss.c +++ b/src/auth/userdb-nss.c @@ -109,10 +109,11 @@ userdb_nss_preinit(pool_t pool, const char *args) module = p_new(pool, struct nss_userdb_module, 1); module->bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); module->buf = p_malloc(pool, module->bufsize); + module->module.blocking = TRUE; for (tmp = t_strsplit(args, " "); *tmp != NULL; tmp++) { - if (strcmp(*tmp, "blocking=yes") == 0) - module->module.blocking = TRUE; + if (strcmp(*tmp, "blocking=no") == 0) + module->module.blocking = FALSE; else if (strncmp(*tmp, "service=", 8) == 0) module->nss_module.name = p_strdup(pool, *tmp + 8); else -- 2.47.3