From 5666ed0a6db77a514eb6516ed1b1fca1b5697e3f Mon Sep 17 00:00:00 2001 From: Johannes Heimansberg Date: Fri, 21 May 2021 19:41:07 +0200 Subject: [PATCH] [HRDN-7231] When calling wc, use the short -l flag instead of --lines to make it work with busybox's wc implementation also --- include/tests_hardening | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_hardening b/include/tests_hardening index 130a4ddc..c414edb6 100644 --- a/include/tests_hardening +++ b/include/tests_hardening @@ -114,7 +114,7 @@ LogText "Test: Check for registered non-native binary formats" NFORMATS=0 if [ -d /proc/sys/fs/binfmt_misc ]; then - NFORMATS=$(${FINDBINARY} /proc/sys/fs/binfmt_misc -type f -not -name register -not -name status | ${WCBINARY} --lines) + NFORMATS=$(${FINDBINARY} /proc/sys/fs/binfmt_misc -type f -not -name register -not -name status | ${WCBINARY} -l) fi if [ ${NFORMATS} -eq 0 ]; then LogText "Result: no non-native binary formats found"