mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-03 02:39:58 -07:00
Fix https://github.com/EFForg/rayhunter/issues/199 Fix https://github.com/EFForg/rayhunter/issues/151 rayhunter updates manifest files using write **without truncation**. This means that if the new manifest is shorter than the old one, trailing bytes of the old data will persist in the new file. Switch over to atomic file writes so that this bug is fixed + rayhunter behaves correctly if it is killed mid-write. https://github.com/EFForg/rayhunter/pull/182 could be reverted as it seems to mostly be a workaround.