]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
cifs: escape spaces in share names
authorMaciek Borzecki <maciek.borzecki@gmail.com>
Tue, 6 Apr 2021 15:02:29 +0000 (17:02 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:53:20 +0000 (09:53 +0200)
commit4d89ccc80ea394f0987774c70c719eae40b50076
tree1f118973c472299644525fb2ce73e710365520ea
parenta8c36c7222055fe040d94b7f7129a72df13634e7
cifs: escape spaces in share names

BugLink: https://bugs.launchpad.net/bugs/1926368
commit 0fc9322ab5e1fe6910c9673e1a7ff29f7dd72611 upstream.

Commit 653a5efb849a ("cifs: update super_operations to show_devname")
introduced the display of devname for cifs mounts. However, when mounting
a share which has a whitespace in the name, that exact share name is also
displayed in mountinfo. Make sure that all whitespace is escaped.

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
CC: <stable@vger.kernel.org> # 5.11+
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/cifs/cifsfs.c