]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:samba: Fix default to be running samba as a deamon
authorAndrew Bartlett <abartlet@samba.org>
Tue, 19 Dec 2017 03:30:08 +0000 (16:30 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Dec 2017 10:24:29 +0000 (11:24 +0100)
Commit 8736013dc42c5755b75bbb2e843a290bcd545909 got the (confusing) sense of opt_fork
wrong.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13129

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Dec 19 11:24:29 CET 2017 on sn-devel-144

source4/smbd/server.c

index 006f76bc8599ddcbc01f197b6014189381ba91dd..85dea2626a19d3a25d25b604522b070ceb3e815a 100644 (file)
@@ -450,7 +450,7 @@ static int binary_smbd_main(const char *binary_name,
                        "not allowed together with -D|--daemon\n\n");
                poptPrintUsage(pc, stderr, 0);
                return 1;
-       } else if (!opt_interactive && !opt_fork) {
+       } else if (!opt_interactive && opt_fork) {
                /* default is --daemon */
                opt_daemon = true;
        }