Commit 9804458a authored by Jakub Jirutka's avatar Jakub Jirutka 🇺🇦
Browse files

testing/radsecproxy: don't ignore logdestination when running in foreground

parent 49bd7942
......@@ -11,6 +11,7 @@ arch="all"
makedepends="nettle-dev openssl-dev autoconf automake"
subpackages="$pkgname-doc $pkgname-openrc"
......@@ -51,6 +52,7 @@ package() {
e72a3b55089cb985503c74a0aa0c62e0a05ac5325217900d39aa87563dd639f154ee372ac5e62ecd5aed92b832b0e58bc43f9588ed7950ec731fa5b297e5c07c radsecproxy-1.9.1.tar.gz
b8fb597b7d972d4b1ca2063ded6a23ccecc90e84d303f7b7c52a82750b2eaf54c4a55d74bf190c4301e9b3fccf340974097438aa8b420bc98d2e18be14df9dc2 dont-ignore-logdestination-in-foreground.patch
d1cf3b812854f952d69d536fbd9381e71debdd083992a8882d68427ffbadc29f6cc73b43d61dcafacad731d3f78cd4828dc7c0ade7172947ddb68b08f28f0dc1 radsecproxy.conf
68f569eb4fe0b4f5e9c6e1f65a596b1cd4d38521adad782b80e6a3228f74ed86e02b962c2ccefa20b9b3b16649c03af7b9105b4ae3ad568a8c05b1acd12d3bc7 radsecproxy.initd
e268759550151b31dcbc41d63b4a3f5c99c5aab5e85ecc0b52fe0027dd918af0fae1fd7298b0abdf9e31c8764f80e98de65483d13bb57739468ae12c9cb480b8 radsecproxy.confd
From: Jakub Jirutka <>
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)
- if (!foreground) {
+ if (!pretend) { // XXX-Patched
? options.logdestination
: "x-syslog:///", LOG_TYPE_DEBUG);
--- a/
+++ b/
@@ -36,7 +36,7 @@
Run in foreground.
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.
.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.
.B \-v
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment