mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 07:51:21 +03:00
sd-bus: let's better not invade stdio territory when duplicating fds
This commit is contained in:
parent
2b33ab0957
commit
40164c2ceb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user