aboutsummaryrefslogtreecommitdiffstats
path: root/community/elogind/reverse_CLOSE_ON_EXEC_removal.patch
blob: 98f1fdbcf728f01805a6614d2a2e2fb83dd963b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index e981cd024..ffcbf7309 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -156,7 +156,7 @@ int write_string_file_ts(
                         goto fail;
                 }
 
-                f = fdopen(fd, "w");
+                f = fdopen(fd, "we");
                 if (!f) {
                         r = -errno;
                         safe_close(fd);