r19638 - gnucash/trunk/src/backend/xml - Bug #593479: Ensure not to accidentally delete our main account file.

Christian Stimming cstim at code.gnucash.org
Tue Oct 5 14:07:39 EDT 2010


Author: cstim
Date: 2010-10-05 14:07:38 -0400 (Tue, 05 Oct 2010)
New Revision: 19638
Trac: http://svn.gnucash.org/trac/changeset/19638

Modified:
   gnucash/trunk/src/backend/xml/gnc-backend-xml.c
Log:
Bug #593479: Ensure not to accidentally delete our main account file.

Original patch by Tim Retout who writes:

strptime is passed (name + pathlen + 1) as the string to search.  However, when
looking at the main account file, strlen(name) == pathlen, so strptime is
looking at the point just past the end of name.

Sometimes this will be parseable by strptime, and this leads to the account
file being unlinked.



More information about the gnucash-patches mailing list