summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Szyndela <adrian.s@samsung.com>2020-03-26 11:19:37 +0100
committerAdrian Szyndela <adrian.s@samsung.com>2020-03-26 16:04:19 +0100
commit33b11b26145b0ab55836cda8b6492a360756febb (patch)
tree187beccde167b359e820178f0f8663ea5f45b5f1
parentfcb8124c885cb87fb70d6776351939564212d628 (diff)
downloadsystemd-sandbox/adrians/upgrade-to-238.tar.gz
systemd-sandbox/adrians/upgrade-to-238.tar.bz2
systemd-sandbox/adrians/upgrade-to-238.zip
sd-bus: fix fcntl flag for duplicating fdsandbox/adrians/upgrade-to-238
-rw-r--r--src/libsystemd/sd-bus/bus-message.c2
1 files changed, 1 insertions, 1 deletions
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;