From 6d379ef9bc81b93aab3a5faddc1cb652a77fd7d7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 19 Dec 2017 16:30:08 +1300 Subject: [PATCH] s4:samba: Fix default to be running samba as a deamon 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 --- source4/smbd/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 006f76bc859..85dea2626a1 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -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; } -- 2.11.0