diff --git a/chkcrontab_lib.py b/chkcrontab_lib.py index a50286ab2330f8dd70f11f29f3f88fe7529b1b6f..1d5e6bc994955d3e3c909e2d85735a42bdf387a6 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