HomeFreeBSD

Unbreak MSG_CMSG_CLOEXEC

Description

Unbreak MSG_CMSG_CLOEXEC

MSG_CMSG_CLOEXEC has not been working since 2015 (SVN r284380) because
_finstall expects O_CLOEXEC and not UF_EXCLOSE as the flags argument.
This was probably not noticed because we don't have a test for this flag
so this commit adds one. I found this problem because one of the
libwayland tests was failing.

Fixes: ea31808c3b07 ("fd: move out actual fp installation to _finstall")
MFC after: 3 days
Reviewed By: mjg, kib
Differential Revision: https://reviews.freebsd.org/D29328

(cherry picked from commit 6ceacebdf5221133943ab3b6b56751c8b51c3e2b)

Details

Provenance
arichardsonAuthored on Mar 18 2021, 8:52 PM
Reviewer
mjg
Differential Revision
D29328: Unbreak MSG_CMSG_CLOEXEC
Parents
rG3056bbfc2cb2: loader: we should support pools without features
Branches
Unknown
Tags
Unknown