mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove unnecessary assignment to path
This commit is contained in:
@@ -423,7 +423,6 @@ 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
|
||||
continue
|
||||
}
|
||||
fi, err := os.Lstat(path)
|
||||
|
||||
Reference in New Issue
Block a user