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()

As mentioned by @jlebon in #11131.
This commit is contained in:
Chris Down
2018-12-12 20:47:40 +01:00
committed by Lennart Poettering
parent 9be3c60570
commit e92aaed30e
17 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ static int gather_environment_consume(int fd, void *arg) {
assert(env);
f = fdopen(fd, "re");
f = fdopen(fd, "r");
if (!f) {
safe_close(fd);
return -errno;