From 980982da627fb226e73d49d75f9d5df035888ad1 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 19 Jun 2018 11:00:56 +0900 Subject: [PATCH] mount: do not output (null) in option Fixes #9327. --- src/mount/mount-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index e3fc94df16..64c1efdb1c 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -449,7 +449,7 @@ static int transient_mount_set_properties(sd_bus_message *m) { r = asprintf(&options, "uid=" UID_FMT ",gid=" GID_FMT "%s%s", arg_uid, arg_gid, - arg_mount_options ? "," : "", arg_mount_options); + arg_mount_options ? "," : "", strempty(arg_mount_options)); if (r < 0) return -ENOMEM; }