Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/at Change "garbled time" panic to a message that giv...



details:   https://anonhg.NetBSD.org/src/rev/a286d672a42c
branches:  trunk
changeset: 586793:a286d672a42c
user:      garbled <garbled%NetBSD.org@localhost>
date:      Mon Jan 02 20:18:59 2006 +0000

description:
Change "garbled time" panic to a message that gives the user a better
idea of what happened.  Addresses PR bin/12463

diffstat:

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

diffs (27 lines):

diff -r 0de2fbd36e28 -r a286d672a42c usr.bin/at/parsetime.c
--- a/usr.bin/at/parsetime.c    Mon Jan 02 19:10:33 2006 +0000
+++ b/usr.bin/at/parsetime.c    Mon Jan 02 20:18:59 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parsetime.c,v 1.12 2004/10/30 16:55:06 dsl Exp $       */
+/*     $NetBSD: parsetime.c,v 1.13 2006/01/02 20:18:59 garbled 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.12 2004/10/30 16:55:06 dsl Exp $");
+__RCSID("$NetBSD: parsetime.c,v 1.13 2006/01/02 20:18:59 garbled Exp $");
 #endif
 #endif
 
@@ -644,7 +644,7 @@
        }
 
        if (runtimer < 0)
-               panic("garbled time");
+               panic("Time not valid (likey due to daylight saving time)");
 
        if (nowtimer > runtimer)
                panic("Trying to travel back in time");



Home | Main Index | Thread Index | Old Index