From 079be1e71b295b7eca1be3035070d5e921cf672d Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 6 Jan 2026 22:24:25 +0100 Subject: [PATCH] core/varlink-execute: skip empty mount options This keeps things in line with bus_append_mount_options(). --- src/core/varlink-execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/varlink-execute.c b/src/core/varlink-execute.c index 6f300fa7d3..35ea1b1330 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(