From b8ed6c050a06e72981dd79c76cfd3b190a18d15f Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Mon, 2 Jan 2017 23:31:50 +0000 Subject: [PATCH] Warn for files that do not exist. --- chkcrontab_lib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chkcrontab_lib.py b/chkcrontab_lib.py index a50286a..1d5e6bc 100755 --- a/chkcrontab_lib.py +++ b/chkcrontab_lib.py @@ -1062,6 +1062,7 @@ def check_crontab(crontab_file, log, whitelisted_users=None): # Check if the file even exists. if not os.path.exists(crontab_file): + log.Warn('File "%s" does not exist.' % crontab_file) return log.Summary() # Add the any specified users to the whitelist -- GitLab