chiark / gitweb /
sd-dhcp: message_init - only set secs in the client
[elogind.git] / src / journal / coredumpctl.c
index e564ab656c85c481f8934a6feeaba940cf06797e..3bceb48ff731351afb2dff3c9d9d675ad4da44e6 100644 (file)
@@ -472,7 +472,7 @@ static int run_gdb(sd_journal *j) {
         data = (const uint8_t*) data + 9;
         len -= 9;
 
-        fd = mkostemp(path, O_WRONLY);
+        fd = mkostemp_safe(path, O_WRONLY|O_CLOEXEC);
         if (fd < 0) {
                 log_error("Failed to create temporary file: %m");
                 return -errno;