mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1158 from jhe2/wc-argument-fix
[HRDN-7231] When calling wc, use the short -l flag instead of --lines…
This commit is contained in:
commit
54684aaac5
|
@ -114,7 +114,7 @@
|
||||||
LogText "Test: Check for registered non-native binary formats"
|
LogText "Test: Check for registered non-native binary formats"
|
||||||
NFORMATS=0
|
NFORMATS=0
|
||||||
if [ -d /proc/sys/fs/binfmt_misc ]; then
|
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
|
fi
|
||||||
if [ ${NFORMATS} -eq 0 ]; then
|
if [ ${NFORMATS} -eq 0 ]; then
|
||||||
LogText "Result: no non-native binary formats found"
|
LogText "Result: no non-native binary formats found"
|
||||||
|
|
Loading…
Reference in New Issue