aboutsummaryrefslogtreecommitdiff
path: root/net/freeradius3/patches/004-get-hostname-from-proc-in-radtest.patch
blob: e2cdfb9f75cfe6bf05da48e1bbd9a1fe7ddc7301 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/main/radtest.in
+++ b/src/main/radtest.in
@@ -112,7 +112,7 @@ if [ "$7" ]
 then
 	nas=$7
 else
-	nas=`hostname`
+	nas=$(cat /proc/sys/kernel/hostname)
 fi
 
 (