Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A923D10656A3 for ; Mon, 31 Aug 2009 18:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6CD0C8FC17 for ; Mon, 31 Aug 2009 18:30:08 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7VIU8D2016379 for ; Mon, 31 Aug 2009 18:30:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7VIU8op016376; Mon, 31 Aug 2009 18:30:08 GMT (envelope-from gnats) Resent-Date: Mon, 31 Aug 2009 18:30:08 GMT Resent-Message-Id: <200908311830.n7VIU8op016376@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Takanori Watanabe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A33D106566C for ; Mon, 31 Aug 2009 18:26:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 88F028FC21 for ; Mon, 31 Aug 2009 18:26:19 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7VIQJch093058 for ; Mon, 31 Aug 2009 18:26:19 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7VIQJAb093057; Mon, 31 Aug 2009 18:26:19 GMT (envelope-from nobody) Message-Id: <200908311826.n7VIQJAb093057@www.freebsd.org> Date: Mon, 31 Aug 2009 18:26:19 GMT From: Takanori Watanabe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/138410: gnucash quote price editor adds price data as wrong date. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 18:30:08 -0000 >Number: 138410 >Category: ports >Synopsis: gnucash quote price editor adds price data as wrong date. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 31 18:30:08 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Takanori Watanabe >Release: FreeBSD 8.0-BETA2 >Organization: Private >Environment: FreeBSD sana.init-main.com 8.0-BETA2 FreeBSD 8.0-BETA2 #13 r195939M: Wed Jul 29 17:20:15 JST 2009 takawata@rin.init-main.com:/usr/obj/usr/src.svn/head/sys/LIEUTENANT i386 >Description: gnucash quote price editor consume date string and convert the string by strptime(3) then get time_t by mktime(3). And struct tm, a mktime argument is not initialized and mktime detects insane structure and returns -1. So the entry is always added as epoch -1 date. >How-To-Repeat: Use Price Editor and try to get quotes of your portfolio. Note that it is not always occur because it is caued by wild structure. >Fix: Add following patch as files/patch-src-app-utils-guile-util.c And rebuild. --- src/app-utils/guile-util.c.old 2008-01-08 10:06:47.000000000 +0900 +++ src/app-utils/guile-util.c 2009-09-01 03:04:30.000000000 +0900 @@ -1304,6 +1304,8 @@ g_return_val_if_fail(s && format, -1); + bzero(&tm, sizeof(tm)); + if (!strptime(s, format, &tm)) return -1; >Release-Note: >Audit-Trail: >Unformatted: