diff options
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/nscd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c index af4b181..97400d1 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); |