Bug 1713734

Summary: barf: shell syntax error in barf diagnostic tool
Product: Red Hat Enterprise Linux 8 Reporter: Paul Wouters <pwouters>
Component: libreswanAssignee: Paul Wouters <pwouters>
Status: CLOSED ERRATA QA Contact: Jaroslav Aster <jaster>
Severity: low Docs Contact:
Priority: low    
Version: 8.1CC: jaster
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:59:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Wouters 2019-05-24 16:26:21 UTC
Description of problem:

usr/libexec/ipsec/barf is no longer a valid /bin/sh script on all architectures:
/usr/libexec/ipsec/barf: line 179: syntax error near unexpected token `fi'
/usr/libexec/ipsec/barf: line 179: `fi'

Trivial fix is:

diff --git a/programs/barf/barf.in b/programs/barf/barf.in
index fce0599..9cb92ff 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

Comment 5 errata-xmlrpc 2019-11-05 20:59:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3391