]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/dbus-util: several cleanups for bus_read_mount_options() 40395/head
authorMike Yuan <me@yhndnzj.com>
Tue, 6 Jan 2026 21:02:17 +0000 (22:02 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 19 Jan 2026 16:49:29 +0000 (17:49 +0100)
commite1388041c03617d2018eed5afb435450cc8ae5f2
treee628967e65649a8501bd0c6a79b76bb00dd3dfa7
parent079be1e71b295b7eca1be3035070d5e921cf672d
core/dbus-util: several cleanups for bus_read_mount_options()

* Make sure ret_options is initialized on success.
* Return empty mount options as-is rather than NULL-ing it -
  dbus property parser for RootImageOptions relies on it
  for resetting options for a specific partition designator.
* Format partition:options properly with strextendf, currently
  multiple ":" will be emitted.
* Allow separator to be unset if in_out_format_str is not
  needed.
src/core/dbus-service.c
src/core/dbus-util.c