diff options
author | Karel Zak <kzak@redhat.com> | 2019-06-10 15:18:47 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-11 09:19:16 +0200 |
commit | 08185cff19efcb1d7d9fb7b546e7f516ab6dae91 (patch) | |
tree | ba8b235d54365f4578283defc2a9f9fae273794d /src | |
parent | 9a311429977daab43aa97b702e8f59337ff29f9b (diff) | |
download | systemd-08185cff19efcb1d7d9fb7b546e7f516ab6dae91.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/mount/mount-tool.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |