Bug 138408 - [patch] finance/libofx import timestamp may be wrong
Summary: [patch] finance/libofx import timestamp may be wrong
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 19:10 UTC by Takanori Watanabe
Modified: 2009-11-08 00:10 UTC (History)
0 users

See Also:


Attachments
file.diff (620 bytes, patch)
2009-08-31 19:10 UTC, Takanori Watanabe
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Takanori Watanabe 2009-08-31 19:10:05 UTC
Sometimes the date value read from ofx file entry sets to the Epoch - 1.
That is because not fully initialized struct tm is passed to mktime(3) and
wile structure may detected by the function and returns -1 value.

Fix: Replace  patch-lib_ofx_utilities.cpp with following.
How-To-Repeat: Read a ofx file by ofxdump etc. Note that it is not always occur because it is caused by wild structure.
Comment 1 dfilter service freebsd_committer freebsd_triage 2009-11-08 00:07:06 UTC
arved       2009-11-08 00:06:57 UTC

  FreeBSD ports repository

  Modified files:
    finance/libofx       Makefile 
    finance/libofx/files patch-lib_ofx_utilities.cpp 
  Log:
  Fix an initialization bug
  Bump PORTREVISION
  
  PR:             138408
  Submitted by:   takawata
  
  Revision  Changes    Path
  1.27      +1 -1      ports/finance/libofx/Makefile
  1.2       +20 -13    ports/finance/libofx/files/patch-lib_ofx_utilities.cpp
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2009-11-08 00:07:41 UTC
State Changed
From-To: open->closed

committed, thanks!