Blame SOURCES/openscap-1.2.14-sysctl-test-s390x-PR-726.patch

160b6f
From 83342658ceb4230c218b0b47046ca6bb8e239f62 Mon Sep 17 00:00:00 2001
160b6f
From: Marek Haicman <mhaicman@redhat.com>
160b6f
Date: Mon, 24 Apr 2017 10:05:59 +0200
160b6f
Subject: [PATCH] Fixing sysctl test on s390 architecture
160b6f
160b6f
---
160b6f
 tests/probes/sysctl/test_sysctl_probe_all.sh | 3 ++-
160b6f
 1 file changed, 2 insertions(+), 1 deletion(-)
160b6f
160b6f
diff --git a/tests/probes/sysctl/test_sysctl_probe_all.sh b/tests/probes/sysctl/test_sysctl_probe_all.sh
160b6f
index 1b725231d..fa3539255 100755
160b6f
--- a/tests/probes/sysctl/test_sysctl_probe_all.sh
160b6f
+++ b/tests/probes/sysctl/test_sysctl_probe_all.sh
160b6f
@@ -22,7 +22,8 @@ $OSCAP oval eval --results $result $srcdir/test_sysctl_probe_all.oval.xml > /dev
160b6f
 
160b6f
 # sysctl has duplicities in output
160b6f
 # hide permission errors like: "sysctl: permission denied on key 'fs.protected_hardlinks'"
160b6f
-sysctl -aN --deprecated 2> /dev/null | sort -u > "$sysctlNames"
160b6f
+# kernel parameters might use "/" and "." separators interchangeably - normalizing
160b6f
+sysctl -aN --deprecated 2> /dev/null | tr "/" "." | sort -u > "$sysctlNames"
160b6f
 
160b6f
 grep unix-sys:name "$result" | sed -E 's;.*>(.*)<.*;\1;g' | sort > "$ourNames"
160b6f