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:
authorMichael Boelen <michael.boelen@cisofy.com>2017-02-18 16:28:56 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-02-18 16:28:56 +0300
commit2d8b06678fd8cdf78f050bc272d262eb6e7259d8 (patch)
treed526e01a745c733b5ede3cf65444a6a653753b15 /include/tests_time
parent83fe1c62bb7d11dc094849165955c54cca6183ac (diff)
[TIME-3116] skip stratum 16 items for time pools
Diffstat (limited to 'include/tests_time')
-rw-r--r--include/tests_time2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_time b/include/tests_time
index a80862d2..ee53deb2 100644
--- a/include/tests_time
+++ b/include/tests_time
@@ -249,7 +249,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
N=0
LogText "Test: Checking stratum 16 sources from ntpq peers list"
- FIND=$(${NTPQBINARY} -p -n | ${AWKBINARY} '{ if ($3=="16") { print $1 }}')
+ FIND=$(${NTPQBINARY} -p -n | ${AWKBINARY} '{ if ($2!=".POOL." && $3=="16") { print $1 }}')
if [ "${FIND}" = "" ]; then
Display --indent 2 --text "- Checking high stratum ntp peers" --result "${STATUS_OK}" --color GREEN
LogText "Result: All peers are lower than stratum 16"