Recover better from empty/invalid storagedir files
commitc8ee12b2e8108658d647aedb92885311291b6f71
authorNick Mathewson <nickm@torproject.org>
Mon, 20 Nov 2017 15:14:41 +0000 (20 10:14 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 20 Nov 2017 15:14:41 +0000 (20 10:14 -0500)
tree2eda7ca2934e51e156971582e4d14da827e663a1
parentcabcb752d7ecc2d16e6cb630b3de0684b4f97ec5
Recover better from empty/invalid storagedir files

If we can't read a file because of an FS issue, we say "we can't
read that" and move on.  But if we can't read it because it's empty,
because it has no labels, or because its labels are misformatted, we
should remove it.

Fixes bug 24099; bugfix on 0.3.1.1-alpha.
changes/bug24099 [new file with mode: 0644]
src/or/conscache.c