Don't remove cache-files because of inconsistent metadata (sr #109587)

This commit is contained in:
wbaumann 2019-01-17 17:34:44 +00:00
parent 7e8f220d05
commit ae38c9eca6
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,11 @@
ChangeLog for davfs2
--------------------

2019-01-17 Werner Baumann (werner.baumann@onlinehome.de)
* cache.c, xml_end_reg:
Don't remove cache-files because of inconsistent
metadata (sr #109587).

2019-01-12 Werner Baumann (werner.baumann@onlinehome.de)
* Fixed typo (sr #109588).


View File

@ -3219,7 +3219,6 @@ xml_end_reg(void *userdata, int state, const char *nspace, const char *name)
if (!reg->name || !reg->cache_path || stat(reg->cache_path, &st) != 0
|| reg->size != st.st_size || (!reg->path && !is_backup(reg))) {
if (reg->cache_path) {
remove(reg->cache_path);
free(reg->cache_path);
reg->cache_path = NULL;
}