Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FD leak when checking lock dir permissions.
`mkstemp(3)` creates and opens a file descriptor for a temporary file, but this file descriptor was immediately discarded in favour of `fopen(3)`'ing the file by name and using that `FILE *` stream. I'm sure whoever originally wrote this code meant to use `mktemp(3)` instead, which only creates a unique file from a template name (equivalent to `mktemp(1)`).
- Loading branch information