[Bug 199801] libfetch should use option letter "e" with fopen() to force O_CLOEXEC instead of calling fcntl() later
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Apr 30 10:13:09 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199801
Bug ID: 199801
Summary: libfetch should use option letter "e" with fopen() to
force O_CLOEXEC instead of calling fcntl() later
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: jau at iki.fi
Created attachment 156132
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=156132&action=edit
Add "e" to fopen() options and remove the fcntl() calls.
There are a couple of pointless calls to fcntl() in libfetch
to set FD_CLOEXEC where the easier and more robust approach
would be adding the option letter "e" to fopen() options to
force O_CLOEXEC already at the time of open().
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list