mirror of https://github.com/CISOfy/lynis.git
Merge pull request #958 from Steve8291/patch-2
fix stderr output from cryptsetup status
This commit is contained in:
commit
b980223d42
|
@ -186,7 +186,7 @@
|
||||||
if ${CRYPTSETUPBINARY} isLuks "${BLOCK_DEV}" 2> /dev/null; then
|
if ${CRYPTSETUPBINARY} isLuks "${BLOCK_DEV}" 2> /dev/null; then
|
||||||
LogText "Result: Found LUKS encrypted swap device: ${BLOCK_DEV}"
|
LogText "Result: Found LUKS encrypted swap device: ${BLOCK_DEV}"
|
||||||
ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS +1))
|
ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS +1))
|
||||||
elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" | ${GREPBINARY} --quiet "cipher:"; then
|
elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" 2> /dev/null | ${GREPBINARY} --quiet "cipher:"; then
|
||||||
LogText "Result: Found non-LUKS encrypted swap device: ${BLOCK_DEV}"
|
LogText "Result: Found non-LUKS encrypted swap device: ${BLOCK_DEV}"
|
||||||
ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS +1))
|
ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS +1))
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue