Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It seems the original author of crond slightly messed up the logic for checking whether the current time matches the time that was specified. This patch fixes it. For some reason there was an OR where there should have been an AND, which meant if the time and day of month OR the month and day of week match the current time, the job would run. So you'd get jobs running every minute if the day of week and month match. And if they didn't match, you'd still get the job running if the time and day of month match. Also, in the tm struct, the day of the month (tm_mday) starts at 1, not the month (tm_mon).
- Loading branch information