[Pkg-cron-devel] [pkg-cron] 14/19: Detect invalid entry: step specified without a range
Christian Kastner
chrisk-guest at moszumanska.debian.org
Fri Oct 10 15:18:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to branch ckk/cron-125
in repository pkg-cron.
commit bb72b5a2b2d5829e552e5f1e93e8f7bdb12dd895
Author: Christian Kastner <debian at kvr.at>
Date: Thu Oct 9 15:01:58 2014 +0200
Detect invalid entry: step specified without a range
Thanks, Justin T. Pryzby!
Closes: #733478
---
entry.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/entry.c b/entry.c
index f191143..e0dca75 100644
--- a/entry.c
+++ b/entry.c
@@ -435,6 +435,13 @@ get_range(bits, low, high, names, ch, file)
if (ch != '-') {
/* not a range, it's a single number.
*/
+
+ /* Unsupported syntax: Step specified without range,
+ eg: 1/20 * * * * /bin/echo "this fails"
+ */
+ if (ch == '/')
+ return EOF;
+
if (EOF == set_element(bits, low, high, num1))
return EOF;
return ch;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cron/pkg-cron.git
More information about the Pkg-cron-devel
mailing list