Index: apps/tagcache.c =================================================================== --- apps/tagcache.c (revision 19591) +++ apps/tagcache.c (working copy) @@ -2081,7 +2081,7 @@ masterfd_pos = lseek(masterfd, tcmh.tch.entry_count * sizeof(struct index_entry), SEEK_CUR); - if (masterfd_pos == filesize(masterfd)) + if (masterfd_pos == filesize(masterfd) && tcmh.tch.entry_count != 0) { logf("we can't append!"); close(masterfd); @@ -2823,14 +2823,6 @@ return false; } - if (tch.entry_count == 0) - { - logf("nothing to commit"); - close(tmpfd); - remove(TAGCACHE_FILE_TEMP); - return true; - } - #ifdef HAVE_EEPROM_SETTINGS remove(TAGCACHE_STATEFILE); #endif