From 2e79d78e33585a7655a9db0b6e0068be451c1e27 Mon Sep 17 00:00:00 2001 From: ichirin2501 Date: Thu, 13 Jul 2017 23:59:02 +0900 Subject: [PATCH] fix that recursive symlink is not solved --- mounter/mount.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mounter/mount.go b/mounter/mount.go index 582f036..2334afe 100644 --- a/mounter/mount.go +++ b/mounter/mount.go @@ -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 {