]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd-cleanupd: call set_remote_machine_name() and reopen_logs()
authorRalph Boehme <slow@samba.org>
Sat, 27 Sep 2025 09:32:02 +0000 (11:32 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2025 15:59:35 +0000 (15:59 +0000)
Makes "log file = %m" work.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/server.c

index f784fc5d45022e1e230a5990485604682468ebef..0d5c434735310360d806fbbb811fbf454feefc7b 100644 (file)
@@ -716,6 +716,9 @@ static bool cleanupd_init(struct messaging_context *msg, bool interactive,
        }
 
        process_set_title("smbd-cleanupd", "cleanupd");
+       set_remote_machine_name("cleanupd", false);
+
+       reopen_logs();
 
        se = tevent_add_signal(ev,
                               ev,