Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ginsbach <brian.ginsbach@gmail.com>2020-03-29 23:31:41 +0300
committerBrian Ginsbach <brian.ginsbach@gmail.com>2020-03-29 23:31:41 +0300
commit90b17121baf55a233a5819a0c5f8ba7fe5a387ba (patch)
tree2cc6db150510479776ca3f4575a37219d899d0f0 /include/tests_authentication
parent603d5b16a282b6c2f646bae450002e385bd91b3f (diff)
Fix AUTH-9230 for systems without /etc/login.defs
This fixes a bug where it was determined that /etc/login.defs didn't exist as a prerequisite but then wasn't used to skip the test. Prevents warnings from `grep(1)` for "no such file or directory".
Diffstat (limited to 'include/tests_authentication')
-rw-r--r--include/tests_authentication2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index ce821fba..81842b63 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -396,7 +396,7 @@
if [ -f ${ROOTDIR}etc/login.defs ]; then
PREQS_MET="YES"
fi
- Register --test-no AUTH-9230 --root-only NO --weight L --network NO --category security --description "Check group password hashing rounds"
+ Register --test-no AUTH-9230 --preqs-met ${PREQS_MET} --root-only NO --weight L --network NO --category security --description "Check group password hashing rounds"
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: Checking SHA_CRYPT_MIN_ROUNDS option in ${ROOTDIR}etc/login.defs"
FIND=$(${GREPBINARY} "^SHA_CRYPT_MIN_ROUNDS" ${ROOTDIR}etc/login.defs | ${AWKBINARY} '{ if ($1=="SHA_CRYPT_MIN_ROUNDS") { print $2 } }')