diff options
Diffstat (limited to 'include/tests_scheduling')
-rw-r--r-- | include/tests_scheduling | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/tests_scheduling b/include/tests_scheduling index 14359189..1ec7410e 100644 --- a/include/tests_scheduling +++ b/include/tests_scheduling @@ -186,13 +186,14 @@ done fi else - logtext "Warning: can not read ${AT_ALLOW}" + logtext "Result: can not read ${AT_ALLOW} (no permission)" fi else logtext "Result: file ${AT_ALLOW} does not exist" logtext "Test: checking for file ${AT_DENY}" if [ -f ${AT_DENY} ]; then - if [ -f ${AT_ALLOW} ]; then + FileIsReadable ${AT_DENY} + if [ ${CANREAD} -eq 1 ]; then logtext "Result: file ${AT_DENY} exists, only non listed users can schedule at jobs" FIND=`cat ${AT_DENY} | sort` if [ "${FIND}" = "" ]; then @@ -203,11 +204,12 @@ done fi else - logtext "Warning: can not read ${AT_DENY}" + logtext "Result: can not read ${AT_DENY} (no permission)" fi else logtext "Result: both ${AT_ALLOW} and ${AT_DENY} do not exist" logtext "Note: only root can schedule at jobs" + AddHP 1 1 fi fi Display --indent 4 --text "- Checking at users" --result DONE --color GREEN |