moby--moby/pkg/mount
Sebastiaan van Stijn 58d862574c
fix parseInfoFile does not handle spaces in filenames
`/proc/self/mountinfo` uses `\040` for spaces, however, `parseInfoFile()`
did not decode those spaces in paths, therefore attempting to use `\040`
as a literal part of the path.

This patch un-quotes the `root` and `mount point` fields to fix
situations where paths contain spaces.

Note that the `mount source` field is not modified, given that
this field is documented (man `PROC(5)`) as:

    filesystem-specific information or "none"

Which I interpreted as "the format in this field is undefined".

Reported-by: Daniil Yaroslavtsev <daniilyar@users.noreply.github.com>
Reported-by: Nathan Ringo <remexre@gmail.com>
Based-on-patch-by: Diego Becciolini <itizir@users.noreply.github.com>
Based-on-patch-by: Sergei Utinski <sergei-utinski@users.noreply.github.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-04-02 13:09:26 +02:00
..
flags.go pkg/mount: remove unused ParseTmpfsOptions 2019-02-22 12:55:33 +01:00
flags_freebsd.go
flags_linux.go
flags_unsupported.go
mount.go pkg/mount: wrap mount/umount errors 2018-12-10 20:07:02 -08:00
mount_unix_test.go pkg/mount: implement/use filter for mountinfo parsing 2018-04-19 14:48:09 -07:00
mounter_freebsd.go pkg/mount: wrap mount/umount errors 2018-12-10 20:07:02 -08:00
mounter_linux.go Fix some go_vet issues 2018-12-19 23:57:06 +01:00
mounter_linux_test.go pkg/mount/TestMount: fix wrt selinux 2018-05-22 23:30:47 -07:00
mounter_unsupported.go Fix unmount redeclaration on darwin in github.com/docker/docker/pkg/mount 2018-12-14 11:10:52 +01:00
mountinfo.go
mountinfo_freebsd.go pkg/mount: implement/use filter for mountinfo parsing 2018-04-19 14:48:09 -07:00
mountinfo_linux.go fix parseInfoFile does not handle spaces in filenames 2019-04-02 13:09:26 +02:00
mountinfo_linux_test.go fix parseInfoFile does not handle spaces in filenames 2019-04-02 13:09:26 +02:00
mountinfo_unsupported.go pkg/mount: implement/use filter for mountinfo parsing 2018-04-19 14:48:09 -07:00
mountinfo_windows.go pkg/mount: implement/use filter for mountinfo parsing 2018-04-19 14:48:09 -07:00
sharedsubtree_linux.go pkg/mount: add MakeMount() 2018-10-11 23:30:52 -07:00
sharedsubtree_linux_test.go pkg/mount: wrap mount/umount errors 2018-12-10 20:07:02 -08:00
unmount_unix.go pkg/mount: wrap mount/umount errors 2018-12-10 20:07:02 -08:00
unmount_unsupported.go Fix unmount redeclaration on darwin in github.com/docker/docker/pkg/mount 2018-12-14 11:10:52 +01:00