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:
authormslifcak <slifcan@gmail.com>2017-05-31 16:40:39 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-05-31 16:40:39 +0300
commit8d2b3a202f06bd7cd8055fbe3d5ef7e547d6bb14 (patch)
treeb8b22dda5f8cdeffe7ae82dae2dac9215f436932 /include/tests_scheduling
parent360be2a700166576ab7971bb0cbe3337a7f1a5cb (diff)
A250 2 (#398)
* fix missing ROOTDIR prefix * sort list of services before processing * sort list of certificates before processing * sort list of startup scripts before processing * spell check * remove possessive pronoun
Diffstat (limited to 'include/tests_scheduling')
-rw-r--r--include/tests_scheduling4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_scheduling b/include/tests_scheduling
index 33f1f8a1..d17e0a74 100644
--- a/include/tests_scheduling
+++ b/include/tests_scheduling
@@ -56,7 +56,7 @@
BAD_FILE_PERMISSIONS=0
BAD_FILE_OWNERSHIP=0
FindCronJob() {
- sCRONJOBS=$(${EGREPBINARY} '^([0-9*])' $1 | ${TRBINARY} '\t' ' ' | ${TRBINARY} -s ' ' | ${TRBINARY} ' ' ',')
+ sCRONJOBS=$(${EGREPBINARY} '^([0-9*])' $1 | ${TRBINARY} '\t' ' ' | ${TRBINARY} -s ' ' | ${TRBINARY} ' ' ',' | ${SORTBINARY})
}
CRONTAB_FILE="${ROOTDIR}etc/crontab"
@@ -163,7 +163,7 @@
if [ "${OS}" = "Linux" ]; then
if [ -f /etc/anacrontab ]; then
LogText "Test: checking anacrontab"
- sANACRONJOBS=$(${EGREPBINARY} '^([0-9@])' /etc/anacrontab | ${TRBINARY} '\t' ' ' | ${TRBINARY} -s ' ' | ${TRBINARY} ' ' ',')
+ sANACRONJOBS=$(${EGREPBINARY} '^([0-9@])' /etc/anacrontab | ${TRBINARY} '\t' ' ' | ${TRBINARY} -s ' ' | ${TRBINARY} ' ' ',' | ${SORTBINARY})
if [ ! -z "${sANACRONJOBS}" ]; then
Report "scheduler[]=anacron"
for I in ${sANACRONJOBS}; do