From 5161d890ec5b524c3796791269496bac3226a2f2 Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Mon, 2 Jan 2017 19:41:26 +0000 Subject: [PATCH] Fix whitelisted users. Not sure why, but this was completely broken. Not sure what I'd been thinking. --- chkcrontab | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chkcrontab b/chkcrontab index eb3f220..78f8e21 100755 --- a/chkcrontab +++ b/chkcrontab @@ -38,8 +38,10 @@ def main(argv): sys.exit(1) log = check.LogCounter() - print('Checking correctness of %s' % argv[1]) - return check.check_crontab(argv[1], log, get_whitelisted_users(argv)) + (options, args) = get_whitelisted_users(argv) + for crontab in args[1:]: + print('Checking correctness of %s' % crontab) + return check.check_crontab(crontab, log, options['whitelisted_users']) def get_whitelisted_users(argv): """Gets the list of whitelisted users, if any. -- GitLab