Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.bin/at Pull up revision 1.9 (requested by tron):



details:   https://anonhg.NetBSD.org/src/rev/51b157ee4f37
branches:  netbsd-1-4
changeset: 469998:51b157ee4f37
user:      he <he%NetBSD.org@localhost>
date:      Sat Jan 08 18:48:31 2000 +0000

description:
Pull up revision 1.9 (requested by tron):
  Add timebase (1900 years) to system time before passing it to
  date time parser.  Fixes PR#9122.

diffstat:

 usr.bin/at/parsetime.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 422695d1b507 -r 51b157ee4f37 usr.bin/at/parsetime.c
--- a/usr.bin/at/parsetime.c    Sat Jan 08 18:45:39 2000 +0000
+++ b/usr.bin/at/parsetime.c    Sat Jan 08 18:48:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parsetime.c,v 1.7 1998/06/27 21:15:08 christos Exp $   */
+/*     $NetBSD: parsetime.c,v 1.7.2.1 2000/01/08 18:48:31 he Exp $     */
 
 /* 
  * parsetime.c - parse time for at(1)
@@ -141,7 +141,7 @@
 #if 0
 static char rcsid[] = "$OpenBSD: parsetime.c,v 1.4 1997/03/01 23:40:10 millert Exp $";
 #else
-__RCSID("$NetBSD: parsetime.c,v 1.7 1998/06/27 21:15:08 christos Exp $");
+__RCSID("$NetBSD: parsetime.c,v 1.7.2.1 2000/01/08 18:48:31 he Exp $");
 #endif
 #endif
 
@@ -526,7 +526,7 @@
 
                tm->tm_wday = wday;
 
-               assign_date(tm, mday, tm->tm_mon, tm->tm_year);
+               assign_date(tm, mday, tm->tm_mon, tm->tm_year + TM_YEAR_BASE);
                break;
 
        case NUMBER:



Home | Main Index | Thread Index | Old Index