a small include file rearrangement that doesn't affect normal
[kai/samba-autobuild/.git] / source / nsswitch / winbindd_dual.c
index 207757bceaeeff85ad958684f701ca6d1d10090b..a9796afa3679712e0e6c18617e5b0bac81e0618d 100644 (file)
@@ -29,6 +29,7 @@
 
  */
 
+#include "includes.h"
 #include "winbindd.h"
 
 #undef DBGC_CLASS
@@ -159,10 +160,13 @@ void do_dual_daemon(void)
                return;
        }
        close(fdpair[1]);
-       
-       if (!winbind_setup_common()) 
-               _exit(0);
 
+       /* tdb needs special fork handling */
+       if (tdb_reopen_all() == -1) {
+               DEBUG(0,("tdb_reopen_all failed.\n"));
+               _exit(0);
+       }
+       
        dual_daemon_pipe = -1;
        opt_dual_daemon = False;