Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/cron Pullup rev. 1.5 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/5725bf658b16
branches:  netbsd-1-5
changeset: 489466:5725bf658b16
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Sep 15 03:50:50 2000 +0000

description:
Pullup rev. 1.5 (approved by thorpej):
When @hourly is specified, set not just 23 but bit 0 through 22 also in
the bitstring e->hour.  Fixes PR#10961.

diffstat:

 usr.sbin/cron/entry.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d9cc9e40bbc3 -r 5725bf658b16 usr.sbin/cron/entry.c
--- a/usr.sbin/cron/entry.c     Thu Sep 14 18:53:19 2000 +0000
+++ b/usr.sbin/cron/entry.c     Fri Sep 15 03:50:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: entry.c,v 1.4 1998/01/31 14:40:30 christos Exp $       */
+/*     $NetBSD: entry.c,v 1.4.10.1 2000/09/15 03:50:50 enami Exp $     */
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -22,7 +22,7 @@
 #if 0
 static char rcsid[] = "Id: entry.c,v 2.12 1994/01/17 03:20:37 vixie Exp";
 #else
-__RCSID("$NetBSD: entry.c,v 1.4 1998/01/31 14:40:30 christos Exp $");
+__RCSID("$NetBSD: entry.c,v 1.4.10.1 2000/09/15 03:50:50 enami Exp $");
 #endif
 #endif
 
@@ -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));



Home | Main Index | Thread Index | Old Index