From 0a5b70f3b1bd800742af54f9c7694d60a385476d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 1 Apr 2025 11:08:33 +0200 Subject: [PATCH] shared/mount-setup: use '' to signify empty option string We said: systemd[1]: Mounting efivarfs to /sys/firmware/efi/efivars of type efivarfs with options n/a. I think '' is clearer. --- src/shared/mount-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c index db963df39e6..e7712fa2740 100644 --- a/src/shared/mount-setup.c +++ b/src/shared/mount-setup.c @@ -206,7 +206,7 @@ static int mount_one(const MountPoint *p, bool relabel) { p->what, p->where, p->type, - strna(o)); + o ?: "''"); r = mount_verbose_full(priority, p->what, p->where, p->type, p->flags, o, FLAGS_SET(p->mode, MNT_FOLLOW_SYMLINK)); if (r < 0) -- 2.47.3