diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-03-12 08:42:23 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-03-12 09:42:48 +0100 |
commit | 0870fc2404257d47bf99f7d8faadf60516306029 (patch) | |
tree | 9f72ef4405ec16b1ac310a6cd4ebe126f95a33e5 /src/shared/bus-util.c | |
parent | data-fd-util: some modernization (diff) | |
download | systemd-0870fc2404257d47bf99f7d8faadf60516306029.tar.xz systemd-0870fc2404257d47bf99f7d8faadf60516306029.zip |
data-fd-util: accept size == SIZE_MAX and translate that to strlen
Like what we already do at other places
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r-- | src/shared/bus-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 88e1249b8e..3f54914591 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -627,7 +627,7 @@ static int method_dump_memory_state_by_fd(sd_bus_message *message, void *userdat if (r < 0) return r; - fd = acquire_data_fd(dump, dump_size, 0); + fd = acquire_data_fd_full(dump, dump_size, /* flags = */ 0); if (fd < 0) return fd; |