GTG files should never get empty
Bug #611117 reported by
François Pinard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
New
|
Undecided
|
Unassigned |
Bug Description
(Cleaning some old notes of mine)
This was while using GTG 2.4.0 from the daily ppa.
When GTG crashes, XML files may be left empty.
This should never happen. GTG should not open an existing file for writing, ever. The proper way to proceed is to open another file with a temporary name in the same directory, and only once properly written and closed, the original file may be deleted and the temporary file renamed appropriately.
With a bit of sophistication, GTG should check for a temporary name whenever a required file is missing, and do the rename on the fly. This accounts for a crash happening between the delete and the rename, above.
To post a comment you must log in.
This is a duplicate of bug #579189.