]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: Remove O_CLOEXEC from fdopen
authorChris Down <chris@chrisdown.name>
Wed, 12 Dec 2018 14:58:46 +0000 (14:58 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Dec 2018 19:47:40 +0000 (20:47 +0100)
commite92aaed30e0b5750e5633765f1bddd51c96678e5
treeb568cc092a868d3a4226f529e943d3cde8e72f82
parent9be3c605706cd8430e330e9d16df372f5daccce2
tree-wide: Remove O_CLOEXEC from fdopen

fdopen doesn't accept "e", it's ignored. Let's not mislead people into
believing that it actually sets O_CLOEXEC.

From `man 3 fdopen`:

> e (since glibc 2.7):
> Open the file with the O_CLOEXEC flag. See open(2) for more information. This flag is ignored for fdopen()\ 2

As mentioned by @jlebon in #11131.
17 files changed:
src/basic/fileio.c
src/basic/tmpfile-util.c
src/boot/bootctl.c
src/core/load-fragment.c
src/core/smack-setup.c
src/coredump/coredump.c
src/fsck/fsck.c
src/machine/machine-dbus.c
src/machine/machined-dbus.c
src/network/test-routing-policy-rule.c
src/nspawn/nspawn-setuid.c
src/portable/portable.c
src/portable/portabled-image-bus.c
src/shared/dissect-image.c
src/shared/exec-util.c
src/shared/install.c
src/shared/os-util.c