From f7bfe448b0bc1afe1469a84c286a8465a9139adb Mon Sep 17 00:00:00 2001 From: ginsbach Date: Wed, 15 Jul 2015 13:54:38 +0000 Subject: [PATCH] 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. --- lib/libc/time/strptime.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c index 2c1547cb9a41..8aa3cc0068b6 100644 --- a/lib/libc/time/strptime.c +++ b/lib/libc/time/strptime.c @@ -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 #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;