summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-12 16:31:59 +0200
committerThomas Haller <thaller@redhat.com>2018-09-21 10:39:30 +0200
commit20a7e489eebe897ef531b52c0dbaed3d87e39c40 (patch)
tree1161ac72dd16b0af6714332fe37a381dd2efbeb4 /shared
parentbbc88cd07f6385ebfea1204b76b9f2d52f052c63 (diff)
downloadNetworkManager-20a7e489eebe897ef531b52c0dbaed3d87e39c40.tar.gz
all: pass O_CLOEXEC flag to g_mkstemp()
Diffstat (limited to 'shared')
-rw-r--r--shared/nm-utils/nm-io-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-utils/nm-io-utils.c b/shared/nm-utils/nm-io-utils.c
index 88cb13ff18..b64c09dece 100644
--- a/shared/nm-utils/nm-io-utils.c
+++ b/shared/nm-utils/nm-io-utils.c
@@ -351,7 +351,7 @@ nm_utils_file_set_contents (const char *filename,
length = strlen (contents);
tmp_name = g_strdup_printf ("%s.XXXXXX", filename);
- fd = g_mkstemp_full (tmp_name, O_RDWR, mode);
+ fd = g_mkstemp_full (tmp_name, O_RDWR | O_CLOEXEC, mode);
if (fd < 0) {
errsv = errno;
g_set_error (error,