summaryrefslogtreecommitdiff
path: root/net-vpn/libreswan/files/libreswan-3.28-barf-syntax.patch
blob: 69786bba99f0d4cae99d75caea610bb5340168a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 8c3ba6a5f73ae64aa5171252f54c15d65c9930db Mon Sep 17 00:00:00 2001
From: Tuomo Soini <tis@foobar.fi>
Date: Fri, 24 May 2019 19:19:12 +0300
Subject: [PATCH] barf: fix syntax error caused by removing pfkey checks

Fixes problem introduced in beccfe9f7a40816a9ec663e4076ff051bf4c91cb
---
 programs/barf/barf.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/programs/barf/barf.in b/programs/barf/barf.in
index fce05994cf..9cb92ffc58 100755
--- a/programs/barf/barf.in
+++ b/programs/barf/barf.in
@@ -170,6 +170,8 @@ if test -r /proc/net/ipsec_tncfg
 then
 	cat /proc/net/ipsec_tncfg
 fi
+if test -r /proc/net/xfrm_stat
+then
 _________________________ ip-xfrm-state
 	ip xfrm state
 _________________________ ip-xfrm-policy