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:
Sebastiaan van Stijn
2021-11-05 13:05:38 +01:00
parent fa12f4e696
commit 9c455ded61
8 changed files with 12 additions and 13 deletions

View File

@@ -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