Module Name: src Committed By: ginsbach Date: Wed Jul 15 13:54:38 UTC 2015
Modified Files: src/lib/libc/time: strptime.c Log Message: Don't set state when parsing any timezone (%z) information. The '+' in this case isn't the same as the FreeBSD '%+' str[fp]time() (GNU) extension. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/strptime.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/time/strptime.c diff -u src/lib/libc/time/strptime.c:1.44 src/lib/libc/time/strptime.c:1.45 --- src/lib/libc/time/strptime.c:1.44 Tue Jul 14 18:07:17 2015 +++ src/lib/libc/time/strptime.c Wed Jul 15 13:54:38 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: strptime.c,v 1.44 2015/07/14 18:07:17 ginsbach Exp $ */ +/* $NetBSD: strptime.c,v 1.45 2015/07/15 13:54:38 ginsbach Exp $ */ /*- * Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: strptime.c,v 1.44 2015/07/14 18:07:17 ginsbach Exp $"); +__RCSID("$NetBSD: strptime.c,v 1.45 2015/07/15 13:54:38 ginsbach Exp $"); #endif #include "namespace.h" @@ -480,7 +480,6 @@ literal: continue; case '+': neg = 0; - state |= S_WDAY | S_MON | S_MDAY | S_YEAR; break; case '-': neg = 1;