From: Mike Yuan Date: Mon, 15 Dec 2025 20:02:15 +0000 (+0100) Subject: core/dbus-execute: respect write flags for empty assignments too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F40126%2Fhead;p=thirdparty%2Fsystemd.git core/dbus-execute: respect write flags for empty assignments too --- diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index b7d8b4b5ff8..bf36a928b18 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -3914,7 +3914,7 @@ int bus_exec_context_set_transient_property( if (r < 0) return r; - if (empty) { + if (!UNIT_WRITE_FLAGS_NOOP(flags) && empty) { bind_mount_free_many(c->bind_mounts, c->n_bind_mounts); c->bind_mounts = NULL; c->n_bind_mounts = 0; @@ -3959,7 +3959,7 @@ int bus_exec_context_set_transient_property( if (r < 0) return r; - if (empty) { + if (!UNIT_WRITE_FLAGS_NOOP(flags) && empty) { temporary_filesystem_free_many(c->temporary_filesystems, c->n_temporary_filesystems); c->temporary_filesystems = NULL; c->n_temporary_filesystems = 0;