diff options
author | Davor Kapsa <davor.kapsa@gmail.com> | 2019-10-10 23:06:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-10 23:06:17 +0200 |
commit | 53960d48c7ecb9422b3cece2372060e434cb073e (patch) | |
tree | 6ba648660c7d9c408084ab61401023562cc76c20 /runsc/cmd/gofer.go | |
parent | a5170fd825efbea0550137b5979f7bd08398aa55 (diff) |
Remove unnecessary assignment to path
Diffstat (limited to 'runsc/cmd/gofer.go')
-rw-r--r-- | runsc/cmd/gofer.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/runsc/cmd/gofer.go b/runsc/cmd/gofer.go index fbd579fb8..7dfe00399 100644 --- a/runsc/cmd/gofer.go +++ b/runsc/cmd/gofer.go @@ -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) |