From: Karel Zak Date: Mon, 10 Jun 2019 13:18:47 +0000 (+0200) Subject: systemd-mount: don't check for non-normalized WHAT for network FS X-Git-Tag: v243-rc1~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08185cff19efcb1d7d9fb7b546e7f516ab6dae91;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 43e216acad0..4e9ab762e93 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; }