aboutsummaryrefslogtreecommitdiffstats
path: root/community/radsecproxy/dont-ignore-logdestination-in-foreground.patch
blob: f6081bfeee49f1354b7f25ea3fbf76418bc90e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Wed, 27 Oct 2021 19:55:52 +0200
Subject: [PATCH] Don't ignore logdestination option when started in foreground

...but ignore it when started with pretend (-p).

--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -3075,7 +3075,7 @@
 	options.loglevel = loglevel;
     else if (options.loglevel)
 	debug_set_level(options.loglevel);
-    if (!foreground) {
+    if (!pretend) {  // XXX-Patched
 	debug_set_destination(options.logdestination
                               ? options.logdestination
                               : "x-syslog:///", LOG_TYPE_DEBUG);
--- a/radsecproxy.8.in
+++ b/radsecproxy.8.in
@@ -36,7 +36,7 @@
 Run in foreground.
 .br
 By specifying this option, the proxy will run in foreground mode. That
-is, it won't detach. Also all logging will be done to stderr.
+is, it won't detach.
 
 .TP
 .B \-d \fIdebuglevel\fR
@@ -52,7 +52,7 @@
 usual, but exits prior to creating any sockets. It will return different
 exit codes depending on whether the configuration files are okay. This
 may be used to verify configuration files, and can be done while another
-instance is running.
+instance is running. Also all logging will be done to stderr.
 
 .TP
 .B \-v