Subject: Re: misc/10961: @hourly not usable with cron
To: None <edeveaud@pasteur.fr>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: netbsd-bugs
Date: 09/06/2000 18:14:39
edeveaud@pasteur.fr writes:
> >Fix:
Typo?
enami.
Index: entry.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/cron/entry.c,v
retrieving revision 1.4
diff -u -r1.4 entry.c
--- entry.c 1998/01/31 14:40:30 1.4
+++ entry.c 2000/09/06 09:08:25
@@ -156,7 +156,7 @@
bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));
} else if (!strcmp("hourly", cmd)) {
bit_set(e->minute, 0);
- bit_set(e->hour, (LAST_HOUR-FIRST_HOUR+1));
+ bit_nset(e->hour, 0, (LAST_HOUR-FIRST_HOUR+1));
bit_nset(e->dom, 0, (LAST_DOM-FIRST_DOM+1));
bit_nset(e->month, 0, (LAST_MONTH-FIRST_MONTH+1));
bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));