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
}