Skip to content

Commit

Permalink
fix that recursive symlink is not solved
Browse files Browse the repository at this point in the history
  • Loading branch information
ichirin2501 committed Jul 13, 2017
1 parent 4ec54a1 commit 2e79d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mounter/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ func ResolveRootDir(dir string) (string, error) {
}

if osutil.IsSymlink(dir) {
dir, err = os.Readlink(dir)
dir, err = fp.EvalSymlinks(dir)
if err != nil {
return dir, err
}
}

return fp.Clean(dir), nil
return dir, nil
}

func (m *Mounter) MountSysProc() error {
Expand Down

0 comments on commit 2e79d78

Please sign in to comment.