bugfix(mount): lstat with abs path of parent instead of '/..'

pull/6/head
yue9944882 2018-01-18 13:52:47 +08:00
parent 39ea0d5107
commit c3982691ac
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {
if err != nil {
return true, err
}
rootStat, err := os.Lstat(file + "/..")
rootStat, err := os.Lstat(filepath.Dir(strings.TrimSuffix(file, "/")))
if err != nil {
return true, err
}