diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-16 20:05:28 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-16 20:05:28 +0300 |
commit | 2bd1b1b590a36ec6888c178ca4d2e517bbf7feca (patch) | |
tree | 460a8def44b9f3865d338f0a2cc49661554b73b3 /include/tests_authentication | |
parent | d696d521c1fa1103214ac73a6fb534b537071b35 (diff) |
Format change
Diffstat (limited to 'include/tests_authentication')
-rw-r--r-- | include/tests_authentication | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication index c931ab77..819dfcc9 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -820,7 +820,7 @@ if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking PASS_MIN_DAYS option in ${ROOTDIR}etc/login.defs" FIND=$(${GREPBINARY} "^PASS_MIN_DAYS" ${ROOTDIR}etc/login.defs | ${AWKBINARY} '{ if ($1=="PASS_MIN_DAYS") { print $2 } }') - if [ "${FIND}" = "" -o "${FIND}" = "0" ]; then + if [ -z "${FIND}" -o "${FIND}" = "0" ]; then LogText "Result: password minimum age is not configured" Display --indent 2 --text "- Checking user password aging (minimum)" --result "${STATUS_DISABLED}" --color YELLOW ReportSuggestion ${TEST_NO} "Configure minimum password age in /etc/login.defs" |