mirror of https://github.com/CISOfy/lynis.git
[HRDN-7231] When calling wc, use the short -l flag instead of --lines to make it work with busybox's wc implementation also
This commit is contained in:
parent
d23c722c04
commit
5666ed0a6d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue