Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Lyda
chkcrontab
Commits
efc7c3bd
Commit
efc7c3bd
authored
Jan 02, 2017
by
Kevin Lyda
💬
Committed by
GitHub
Jan 02, 2017
Browse files
Merge pull request #9 from nekoya/fix-whitelist_and_bare_percent
Check command regardless of the USER_WHITELIST
parents
3e4a539b
2997a3f9
Changes
2
Show whitespace changes
Inline
Side-by-side
chkcrontab_lib.py
View file @
efc7c3bd
...
...
@@ -707,7 +707,7 @@ class CronLineTimeAction(object):
# User checks.
if
self
.
user
in
USER_WHITELIST
:
return
pass
elif
len
(
self
.
user
)
>
31
:
log
.
LineError
(
log
.
MSG_INVALID_USER
,
'Username too long "%s"'
%
self
.
user
)
...
...
tests/test_crontab.whitelist
View file @
efc7c3bd
# WARN 1 for questionable file name.
# WARN 0 for missing user
1 * * * * not_a_user Command
# WARN 1 for missing user and questionable bare %
1 * * * * not_a_user Command with %
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment