soup-cache: do not append data to existing files
authorSergio Villar Senin <svillar@igalia.com>
Wed, 20 Apr 2011 11:22:01 +0000 (13:22 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 20 Apr 2011 15:54:10 +0000 (17:54 +0200)
commit42f9135da10dffe6d26f1bc6c70fa41fb211b627
tree4b987d225d69a34d9f8af3220cc12d5ec7ddc084
parent7a15b34ec9510263035cd2af3f9f38d36cfe77db
soup-cache: do not append data to existing files

SoupCache was creating files using g_file_append_to_async(). Whenever there
was an untracked existing file in the directory cache, the SoupCache was
incorrectly appending data to the existing file, and thus, creating invalid
cached resources on disk.

https://bugzilla.gnome.org/show_bug.cgi?id=648285
libsoup/soup-cache.c