From 2973a4e81a2878b8d2654477b2556ad1b1fb4e46 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 21 Mar 2024 14:17:35 +0000 Subject: [PATCH] Bug 36386: Pass user and group to Net::Server This prevents the User/Group Not Defined warns in syslog. Test plan: Restart sip and check your syslog. KTD Test Plan: 1) Stop your SIP server 2) Run "perl C4/SIP/SIPServer.pm /etc/koha/sites/kohadev/koha-conf.xml" We need valid XML without any valid SIP settings to the output goes to the command line 3) Note the warnings 4) Apply this patch 5) Repeat step 2 6) No warnings! Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- C4/SIP/SIPServer.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/SIP/SIPServer.pm b/C4/SIP/SIPServer.pm index 995d448d84..d26f5e25e6 100644 --- a/C4/SIP/SIPServer.pm +++ b/C4/SIP/SIPServer.pm @@ -82,7 +82,9 @@ if (defined($config->{'server-params'})) { push @parms, $key . '=' . $val; } } - +# Add user and group to prevent warn from Net::Server. +push @parms, 'user=' . $>; +push @parms, 'group=' . $>; # # This is the main event. -- 2.39.5