Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix leaking object.cache file references (fixes #462)
using fopen opens the object.cache a second time and naemon closes just one afterwards. So with every write of the objects.cache file, one reference will be kept and prevents the file from beeing deleted which finally fills the disk with deleted files. Using fdopen solves the issue, since it just reuses the existing fd.
- Loading branch information