1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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
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
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
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
mountinfo_windows.go
sharedsubtree_linux.go
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