]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd-scavenger: call set_remote_machine_name()
authorRalph Boehme <slow@samba.org>
Sat, 27 Sep 2025 09:32:29 +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/scavenger.c

index 2e04df662ef7e444a2790b5ee58ff79a9488c5a4..194ff2bdaaf5f94c4cf0ed1c8a6bcc3aa145c551 100644 (file)
@@ -31,6 +31,7 @@
 #include "lib/util/server_id.h"
 #include "lib/util/util_process.h"
 #include "lib/util/sys_rw_data.h"
+#include "source3/lib/substitute.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_SCAVENGER
@@ -255,6 +256,7 @@ static bool smbd_scavenger_start(struct smbd_scavenger_state *state)
                }
 
                process_set_title("smbd-scavenger", "scavenger");
+               set_remote_machine_name("scavenger", false);
                reopen_logs();
 
                state->am_scavenger = true;