Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FD leak when checking lock dir permissions #216

Commits on May 3, 2021

  1. 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)`).
    MrDOS committed May 3, 2021
    Configuration menu
    Copy the full SHA
    2d3743e View commit details
    Browse the repository at this point in the history