From: Mike Yuan Date: Tue, 6 Jan 2026 21:24:25 +0000 (+0100) Subject: core/varlink-execute: skip empty mount options X-Git-Tag: v260-rc1~356^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=079be1e71b295b7eca1be3035070d5e921cf672d;p=thirdparty%2Fsystemd.git core/varlink-execute: skip empty mount options This keeps things in line with bus_append_mount_options(). --- diff --git a/src/core/varlink-execute.c b/src/core/varlink-execute.c index 6f300fa7d3d..35ea1b1330f 100644 --- a/src/core/varlink-execute.c +++ b/src/core/varlink-execute.c @@ -54,7 +54,7 @@ static int json_append_mount_options(sd_json_variant **v, MountOptions *options) return 0; for (PartitionDesignator j = 0; j < _PARTITION_DESIGNATOR_MAX; j++) { - if (!options->options[j]) + if (isempty(options->options[j])) continue; r = sd_json_variant_append_arraybo(