diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-09-16 21:52:46 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-09-19 12:22:14 +0200 |
commit | f38163772cb8ca25c440393132e8678e65437320 (patch) | |
tree | e0ad42ce3b374dda60ce92eab7f2f5fbca8722b4 /lib/cron | |
parent | 5cd5f48f765f00b81786c6f569314474a91a06b8 (diff) |
Add simple cron implementation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/cron')
-rw-r--r-- | lib/cron/rdcron.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/cron/rdcron.c b/lib/cron/rdcron.c index 42936ce..c581b7e 100644 --- a/lib/cron/rdcron.c +++ b/lib/cron/rdcron.c @@ -490,6 +490,11 @@ crontab_t *rdcron(int dirfd, const char *filename) } cron->pid = -1; + cron->minute = 0xFFFFFFFFFFFFFFFFUL; + cron->hour = 0xFFFFFFFF; + cron->dayofmonth = 0xFFFFFFFF; + cron->month = 0xFFFF; + cron->dayofweek = 0xFF; rdline_init(&rd, fd, filename, 0, NULL); ret = rdcfg(cron, &rd, cron_params, ARRAY_SIZE(cron_params), 0); |