From 07c0ba9a074fd6a45be086a0917164ce891c55c0 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Sun, 15 Jan 2012 15:41:23 -0500 Subject: [PATCH] resolves: bug#781744 systemd service file incorrectly listed pid file as /var/run/radiusd/radiusd which it should have been /var/run/radiusd/radiusd.pid --- freeradius-radtest.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 freeradius-radtest.patch diff --git a/freeradius-radtest.patch b/freeradius-radtest.patch new file mode 100644 index 0000000..2974b15 --- /dev/null +++ b/freeradius-radtest.patch @@ -0,0 +1,13 @@ +diff -u -r freeradius-server-2.1.12.orig/src/main/radtest.in freeradius-server-2.1.12/src/main/radtest.in +--- freeradius-server-2.1.12.orig/src/main/radtest.in 2011-09-30 10:12:07.000000000 -0400 ++++ freeradius-server-2.1.12/src/main/radtest.in 2012-01-05 15:51:56.877585514 -0500 +@@ -121,7 +121,7 @@ + echo "EAP-Code = Response" + echo "EAP-Type-Identity = \"$1\"" + fi +- if [ "$6" ] ++ if [ ! -z "$6" ] && [[ $6 =~ ^[0-9]+$ ]] && [ $6 -gt 0 ] + then + echo "Framed-Protocol = PPP" + fi +Only in freeradius-server-2.1.12/src/main: radtest.in~