Fixup swat warning.
authorJeremy Allison <jra@samba.org>
Thu, 3 Apr 2003 01:51:11 +0000 (01:51 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 3 Apr 2003 01:51:11 +0000 (01:51 +0000)
Fix winbindd dual mode in the same was as in APP_HEAD. "Ken Cross" <kcross@nssolutions.com>
noticed the problem.
Jeremy.

source/nsswitch/winbindd_dual.c
source/web/swat.c

index 207757bceaeeff85ad958684f701ca6d1d10090b..3597171005cfd5090d26af519c08e5e03a2be911 100644 (file)
@@ -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);
index 9a133e1330d54f1dc2daec1d25bd819a3d0fd689..fa319bb3ae886f630b6ad4ccac4274fde622c181 100644 (file)
@@ -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