mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
58d862574c
`/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> |
||
---|---|---|
.. | ||
flags.go | ||
flags_freebsd.go | ||
flags_linux.go | ||
flags_unsupported.go | ||
mount.go | ||
mount_unix_test.go | ||
mounter_freebsd.go | ||
mounter_linux.go | ||
mounter_linux_test.go | ||
mounter_unsupported.go | ||
mountinfo.go | ||
mountinfo_freebsd.go | ||
mountinfo_linux.go | ||
mountinfo_linux_test.go | ||
mountinfo_unsupported.go | ||
mountinfo_windows.go | ||
sharedsubtree_linux.go | ||
sharedsubtree_linux_test.go | ||
unmount_unix.go | ||
unmount_unsupported.go |