1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Correct copy paste mistage in pkg/mount/mountinfo_freebsd.go that caused compile errors.

Signed-off-by: Stig Larsson <stig@larsson.dev>
This commit is contained in:
Stig Larsson 2019-05-11 14:04:02 +00:00
parent 3998dffb80
commit 6205fcf60d

View file

@ -13,8 +13,8 @@ import (
"unsafe"
)
// Parse /proc/self/mountinfo because comparing Dev and ino does not work from
// bind mounts.
//parseMountTable returns information about mounted filesystems
func parseMountTable(filter FilterFunc) ([]*Info, error) {
var rawEntries *C.struct_statfs
@ -37,7 +37,7 @@ func parseMountTable(filter FilterFunc) ([]*Info, error) {
if filter != nil {
// filter out entries we're not interested in
skip, stop = filter(p)
skip, stop = filter(&mountinfo)
if skip {
continue
}