Fix cachefile corruption when out of disk space.
commit19e687b96e0d1b98841368293b4d0e31e0408afb
authorHeikki Hokkanen <hoxu@users.sf.net>
Mon, 17 Dec 2012 19:44:20 +0000 (17 21:44 +0200)
committerHeikki Hokkanen <hoxu@users.sf.net>
Mon, 17 Dec 2012 19:44:20 +0000 (17 21:44 +0200)
tree2235fb2a445c33ddf450d265f2704f69c0cbed2a
parente6b3058337731b59455c18194cccd3abcc9eb721
Fix cachefile corruption when out of disk space.

Avoid corrupt cache by writing it to a temporary file first, and then
overwriting the original one. Should also fix other exceptional cases.

Thanks-to: Alexander Strasser <eclipse7@gmx.net>
gitstats