mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Update walk.go
Putting a comment on why we are logging a found symlink. Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
This commit is contained in:
parent
61086e1906
commit
30a5598f2b
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ func symwalk(path string, info os.FileInfo, walkFn filepath.WalkFunc) error {
|
|||
if err != nil {
|
||||
return errors.Wrapf(err, "error evaluating symlink %s", path)
|
||||
}
|
||||
//This log message is to highlight a symlink that is being used within a chart, symlinks can be used for nefarious reasons.
|
||||
log.Printf("found symbolic link in path: %s resolves to %s. Contents of linked file included and used", path, resolved)
|
||||
if info, err = os.Lstat(resolved); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue