Merge pull request #997 from dvrkps:patch-1

PiperOrigin-RevId: 274675428
This commit is contained in:
gVisor bot
2019-10-14 15:52:22 -07:00
+1 -1
View File
@@ -423,7 +423,7 @@ func resolveSymlinksImpl(root, base, rel string, followCount uint) (string, erro
path := filepath.Join(base, name)
if !strings.HasPrefix(path, root) {
// One cannot '..' their way out of root.
path = root
base = root
continue
}
fi, err := os.Lstat(path)