]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/rpc_server: fix "log file = %m"
authorRalph Boehme <slow@samba.org>
Sat, 27 Sep 2025 10:02:35 +0000 (12:02 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2025 15:59:35 +0000 (15:59 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/rpc_server/rpc_host.c
source3/rpc_server/rpc_worker.c

index b88cdf48cc33415e47bbcdc6a208eb92e6fb7694..73099ea59269d4b4e89a1b2a97d3cc10f3ce1b61 100644 (file)
@@ -71,6 +71,7 @@
 #include "nsswitch/winbind_client.h"
 #include "libcli/security/dom_sid.h"
 #include "libcli/security/security_token.h"
+#include "source3/lib/substitute.h"
 
 extern bool override_logfile;
 
@@ -2884,6 +2885,8 @@ int main(int argc, const char *argv[])
 
        dump_core_setup(progname, lp_logfile(frame, lp_sub));
 
+       set_remote_machine_name("samba-dcerpcd", false);
+
        reopen_logs();
 
        DBG_STARTUP_NOTICE("%s version %s started.\n%s\n",
index 9533c5598635dfee83c43cbdee998449f1a51667..e9dc56ef9834403b1409533998421b7cbb60cddb 100644 (file)
@@ -45,6 +45,7 @@
 #include "libcli/security/security_token.h"
 #include "libcli/security/dom_sid.h"
 #include "source3/include/proto.h"
+#include "source3/lib/substitute.h"
 
 /*
  * This is the generic code that becomes the
@@ -1143,6 +1144,8 @@ int rpc_worker_main(
        /* Ignore children - no zombies. */
        CatchChild();
 
+       set_remote_machine_name(progname, false);
+
        reopen_logs();
 
        DBG_STARTUP_NOTICE("%s version %s started.\n%s\n",