mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #997 from dvrkps:patch-1
PiperOrigin-RevId: 274675428
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user