aboutsummaryrefslogtreecommitdiff
path: root/nscd/nscd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r--nscd/nscd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c
index af4b181c7d..97400d1cf1 100644
--- a/nscd/nscd.c
+++ b/nscd/nscd.c
@@ -41,6 +41,7 @@
#include "dbg_log.h"
#include "nscd.h"
+#include "../nss/nsswitch.h"
#include <device-nrs.h>
/* Get libc version number. */
@@ -213,6 +214,9 @@ main (int argc, char **argv)
/* Cleanup files created by a previous `bind'. */
unlink (_PATH_NSCDSOCKET);
+ /* Make sure we do not get recursive calls. */
+ __nss_disable_nscd ();
+
/* Init databases. */
nscd_init (conffile);