diff options
Diffstat (limited to 'src/core/dbus-execute.c')
-rw-r--r-- | src/core/dbus-execute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index 1a9e5da635..8de092ee4e 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -1698,16 +1698,16 @@ int bus_exec_context_set_transient_property( return r; if (!UNIT_WRITE_FLAGS_NOOP(flags)) { - if (LIST_IS_EMPTY(options)) { - c->root_image_options = mount_options_free_all(c->root_image_options); - unit_write_settingf(u, flags, name, "%s=", name); - } else { + if (options) { LIST_JOIN(mount_options, c->root_image_options, options); unit_write_settingf( u, flags|UNIT_ESCAPE_SPECIFIERS, name, "%s=%s", name, format_str); + } else { + c->root_image_options = mount_options_free_all(c->root_image_options); + unit_write_settingf(u, flags, name, "%s=", name); } } |