1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 23:21:22 +03:00

sd-bus: let's better not invade stdio territory when duplicating fds

This commit is contained in:
Lennart Poettering 2018-02-28 23:36:33 +01:00
parent 2b33ab0957
commit 40164c2ceb

View File

@ -2646,7 +2646,7 @@ _public_ int sd_bus_message_append_array_memfd(
if (r < 0)
return r;
copy_fd = dup(memfd);
copy_fd = fcntl(memfd, F_DUPFD_CLOEXEC, 3);
if (copy_fd < 0)
return copy_fd;
@ -2721,7 +2721,7 @@ _public_ int sd_bus_message_append_string_memfd(
if (r < 0)
return r;
copy_fd = dup(memfd);
copy_fd = fcntl(memfd, FD_CLOEXEC, 3);
if (copy_fd < 0)
return copy_fd;