Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Day of week range broken in 1.6.0? #107

Closed
a-dekker opened this issue Mar 22, 2022 · 1 comment · Fixed by #108
Closed

Day of week range broken in 1.6.0? #107

a-dekker opened this issue Mar 22, 2022 · 1 comment · Fixed by #108

Comments

@a-dekker
Copy link

After compiling and installing the new release 1.6.0, all of a sudden my day-of-week range of "1-5" is marked as invalid.

1 16 * * 1-5 /usr/local/bin/do_exec.sh

"/tmp/crontab.4rnM13":62: bad day-of-week
Invalid crontab file, can't install.

reverting to 1.5.7 and the error message is gone. Is something wrong on my side, or is a bug introduced?

@YoruStar
Copy link
Contributor

in the funtion static int get_range()

case R_RANGE need unget_char(ch, file), just like case R_RANDOM.

case R_RANGE:
    unget_char(ch, file);
    if (get_number(&num2, low, names, file) != EOF) {
        state = R_RANGE_NUM2;
        break;
    }
    return (EOF);

the reason of this issue is the same as #102

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants