From: Zbigniew Jędrzejewski-Szmek Date: Tue, 1 Apr 2025 09:08:33 +0000 (+0200) Subject: shared/mount-setup: use '' to signify empty option string X-Git-Tag: v258-rc1~961^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a5b70f3b1bd800742af54f9c7694d60a385476d;p=thirdparty%2Fsystemd.git 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. --- 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)