summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_dual.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-04-03 01:51:13 +0000
committerJeremy Allison <jra@samba.org>2003-04-03 01:51:13 +0000
commite6c48331eba20b02239e5668d9d9cb85da9dc163 (patch)
tree8f888bafe80b10ebd2d08f6dc9366d1394de1614 /source3/nsswitch/winbindd_dual.c
parent3643d94b4f01311a4cf068375da5cd728a150755 (diff)
downloadsamba-e6c48331eba20b02239e5668d9d9cb85da9dc163.tar.gz
samba-e6c48331eba20b02239e5668d9d9cb85da9dc163.tar.bz2
samba-e6c48331eba20b02239e5668d9d9cb85da9dc163.zip
Fixup swat warning.
Fix winbindd dual mode in the same was as in APP_HEAD. "Ken Cross" <kcross@nssolutions.com> noticed the problem. Jeremy. (This used to be commit 8bbcb833317245d7f5b8695e4a5c676f67003937)
Diffstat (limited to 'source3/nsswitch/winbindd_dual.c')
-rw-r--r--source3/nsswitch/winbindd_dual.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c
index 207757bcea..3597171005 100644
--- a/source3/nsswitch/winbindd_dual.c
+++ b/source3/nsswitch/winbindd_dual.c
@@ -159,6 +159,12 @@ void do_dual_daemon(void)
return;
}
close(fdpair[1]);
+
+ /* tdb needs special fork handling */
+ if (tdb_reopen_all() == -1) {
+ DEBUG(0,("tdb_reopen_all failed.\n"));
+ _exit(0);
+ }
if (!winbind_setup_common())
_exit(0);