From 33b11b26145b0ab55836cda8b6492a360756febb Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Thu, 26 Mar 2020 11:19:37 +0100 Subject: sd-bus: fix fcntl flag for duplicating fd --- src/libsystemd/sd-bus/bus-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c index 8b6c3826d2..1e5eec16bd 100644 --- a/src/libsystemd/sd-bus/bus-message.c +++ b/src/libsystemd/sd-bus/bus-message.c @@ -2824,7 +2824,7 @@ _public_ int sd_bus_message_append_string_memfd( if (r < 0) return r; - copy_fd = fcntl(memfd, FD_CLOEXEC, 3); + copy_fd = fcntl(memfd, F_DUPFD_CLOEXEC, 3); if (copy_fd < 0) return copy_fd; -- cgit v1.2.3