From e6c48331eba20b02239e5668d9d9cb85da9dc163 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 3 Apr 2003 01:51:13 +0000 Subject: Fixup swat warning. Fix winbindd dual mode in the same was as in APP_HEAD. "Ken Cross" noticed the problem. Jeremy. (This used to be commit 8bbcb833317245d7f5b8695e4a5c676f67003937) --- source3/nsswitch/winbindd_dual.c | 6 ++++++ source3/web/swat.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'source3') 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); diff --git a/source3/web/swat.c b/source3/web/swat.c index 92dece6ecd..6d14e9db98 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -1262,7 +1262,7 @@ static void printers_page(void) int main(int argc, char *argv[]) { int opt; - char *page; + const char *page; poptContext pc; struct poptOption long_options[] = { POPT_AUTOHELP -- cgit