'~' after number was recognized as abnormal. --- cron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cron.c b/cron.c
index 9da0c8a..18ee8b1 100644
--- a/cron.c
+++ b/cron.c
@@ -252,7 +252,7 @@ parserange(char *str, long low, long high, struct range *r)
errno = 0;
r->low = strtol(strlow, &e, 10);
- if (*e || errno != 0)
+ if ((*e && *e != '~') || errno != 0)
return -1;
if (strhigh) {
if (!*strhigh || range != NULL) /* i.e. N- or N-M-... */
--
2.44.0
