summaryrefslogtreecommitdiffstats
path: root/source
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
commit8bbcb833317245d7f5b8695e4a5c676f67003937 (patch)
treeec33aa7174a60bef1f170074b2893997ce40fd0b /source
parent32dc4ddb04f4d3eecfdd542cb3495830067a2eed (diff)
downloadsamba-8bbcb833317245d7f5b8695e4a5c676f67003937.tar.gz
samba-8bbcb833317245d7f5b8695e4a5c676f67003937.tar.xz
samba-8bbcb833317245d7f5b8695e4a5c676f67003937.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.
Diffstat (limited to 'source')
-rw-r--r--source/nsswitch/winbindd_dual.c6
-rw-r--r--source/web/swat.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_dual.c b/source/nsswitch/winbindd_dual.c
index 207757bceae..3597171005c 100644
--- a/source/nsswitch/winbindd_dual.c
+++ b/source/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/source/web/swat.c b/source/web/swat.c
index 92dece6ecd9..6d14e9db983 100644
--- a/source/web/swat.c
+++ b/source/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