From 08185cff19efcb1d7d9fb7b546e7f516ab6dae91 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 10 Jun 2019 15:18:47 +0200 Subject: [PATCH] systemd-mount: don't check for non-normalized WHAT for network FS The WHAT string could be whatever for many filesystems. The common example are network filesystems. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1708996 --- src/mount/mount-tool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 43e216acad..4e9ab762e9 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -1533,7 +1533,8 @@ static int run(int argc, char* argv[]) { if (arg_action == ACTION_UMOUNT) return action_umount(bus, argc, argv); - if (!path_is_normalized(arg_mount_what)) { + if ((!arg_mount_type || !fstype_is_network(arg_mount_type)) + && !path_is_normalized(arg_mount_what)) { log_error("Path contains non-normalized components: %s", arg_mount_what); return -EINVAL; } -- 2.25.1