diff --git a/pkg/os/filesystem/filesystem.go b/pkg/os/filesystem/filesystem.go index 0ccd3a84cc..a8fec0b5a9 100644 --- a/pkg/os/filesystem/filesystem.go +++ b/pkg/os/filesystem/filesystem.go @@ -137,7 +137,7 @@ func IsSymlink(tgt string) (bool, error) { } // If its a link and it points to an existing file then its a mount point. - if stat.Mode()&os.ModeSymlink != 0 { + if stat.Mode()&os.ModeSymlink != 0 || stat.Mode()&os.ModeIrregular != 0 { target, err := os.Readlink(tgt) if err != nil { return false, fmt.Errorf("readlink error: %v", err)