diff options
author | mboelen <michael@cisofy.com> | 2016-04-28 10:15:54 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-04-28 10:15:54 +0300 |
commit | 9e312f5a5f2a1379a29151d8cb87cd22f387bc6c (patch) | |
tree | e33f24994327564c621802c4c2052f3685adbb8f /include/tests_authentication | |
parent | 5e587adf8a630383a207adfcc658c1fe6401977f (diff) |
Replaced functions and minor cleanups
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 d0493d0e..64893b33 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -737,7 +737,7 @@ if [ ${SKIPTEST} -eq 0 ]; then if FileIsReadable /etc/shadow; then DAYS_SINCE_EPOCH=$((`date --utc +%s`/86400)) - logtext "Data: Days since epoch is ${DAYS_SINCE_EPOCH}" + LogText "Data: Days since epoch is ${DAYS_SINCE_EPOCH}" LogText "Test: collecting accounts which have an expired password (last day changed + maximum change time)" # Skip fields with a !, *, or x, or !* (field $3 is last changed, $5 is maximum changed) FIND=`egrep -v ":[\!\*x](\*)?:" /etc/shadow | awk -v today=${DAYS_SINCE_EPOCH} -F: '{ if (today>$3+$5) { print $1 }}'` |