HomeFreeBSD

Store directory descriptor in the pidfh structure and use unlinkat(2)

Description

Store directory descriptor in the pidfh structure and use unlinkat(2)
function instead of unlink(2).

Now when pidfile_remove() uses unlinkat(2) to remove the pidfile
it is safe to use this function in capability mode.

Style fix: sort headers.

PR: 220524
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D11692

Details

Provenance
oshogboAuthored on
Reviewer
markj
Differential Revision
D11692: Store dirfd of pidfile.
Parents
rS322368: fnmatch(3): improve POSIX conformance.
Branches
Unknown
Tags
Unknown