diff --git a/pkg/filesystem/resolve.go b/pkg/filesystem/resolve.go index 648f13020..69e3f6e50 100644 --- a/pkg/filesystem/resolve.go +++ b/pkg/filesystem/resolve.go @@ -120,7 +120,7 @@ func filesWithParentDirs(files []string) []string { } // resolveSymlinkAncestor returns the ancestor link of the provided symlink path or returns the -// the path if it is not a link. The ancestor link is the filenode whose type is a Symlink. +// path if it is not a link. The ancestor link is the filenode whose type is a Symlink. // E.G /baz/boom/bar.txt links to /usr/bin/bar.txt but /baz/boom/bar.txt itself is not a link. // Instead /bar/boom is actually a link to /usr/bin. In this case resolveSymlinkAncestor would // return /bar/boom. @@ -147,7 +147,7 @@ loop: // one of its ancestors could be a symlink. We call filepath.EvalSymlinks // to test whether there are any links in the path. If the output of // EvalSymlinks is different than the input we know one of the nodes in the - // the path is a link. + // path is a link. target, err := filepath.EvalSymlinks(newPath) if err != nil { return "", err diff --git a/pkg/util/tar_util.go b/pkg/util/tar_util.go index 47436b9ae..74850b912 100644 --- a/pkg/util/tar_util.go +++ b/pkg/util/tar_util.go @@ -149,7 +149,7 @@ const ( ) // writeSecurityXattrToTarHeader writes security.capability -// xattrs from a a tar header to filesystem +// xattrs from a tar header to filesystem func writeSecurityXattrToToFile(path string, hdr *tar.Header) error { if hdr.Xattrs == nil { return nil @@ -253,7 +253,7 @@ func UnpackLocalTarArchive(path, dest string) ([]string, error) { return nil, errors.New("path does not lead to local tar archive") } -//IsFileLocalTarArchive returns true if the file is a local tar archive +// IsFileLocalTarArchive returns true if the file is a local tar archive func IsFileLocalTarArchive(src string) bool { compressed, _ := fileIsCompressedTar(src) uncompressed := fileIsUncompressedTar(src)