go.mod: github.com/moby/sys/symlink v0.2.0
full diff: https://github.com/moby/sys/compare/symlink/v0.1.0...symlink/v0.2.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
4
vendor/github.com/moby/sys/symlink/fs_windows.go
generated
vendored
4
vendor/github.com/moby/sys/symlink/fs_windows.go
generated
vendored
@@ -89,7 +89,7 @@ func walkSymlinks(path string) (string, error) {
|
||||
var b bytes.Buffer
|
||||
for n := 0; path != ""; n++ {
|
||||
if n > maxIter {
|
||||
return "", errors.New("EvalSymlinks: too many links in " + originalPath)
|
||||
return "", errors.New("too many links in " + originalPath)
|
||||
}
|
||||
|
||||
// A path beginning with `\\?\` represents the root, so automatically
|
||||
@@ -101,7 +101,7 @@ func walkSymlinks(path string) (string, error) {
|
||||
}
|
||||
|
||||
// find next path component, p
|
||||
var i = -1
|
||||
i := -1
|
||||
for j, c := range path {
|
||||
if c < utf8RuneSelf && os.IsPathSeparator(uint8(c)) {
|
||||
i = j
|
||||
|
||||
Reference in New Issue
Block a user