Skip to content

Commit

Permalink
Add hint to symlink error message (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmarbev authored Apr 14, 2022
1 parent 4cd855c commit ce387e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/files/symlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (s Symlink) IsAllowed(opts SymlinkAllowOpts) error {
}
}

return fmt.Errorf("Expected symlink file '%s' -> '%s' to be allowed, but was not", s.path, dstPath)
return fmt.Errorf("Expected symlink file '%s' -> '%s' to be allowed, but was not (hint: symlinks are disallowed as a security feature, use '--allow-symlink-destination' flags to override)", s.path, dstPath)
}

func (s Symlink) isIn(path, allowedPath string) (bool, error) {
Expand Down

0 comments on commit ce387e0

Please sign in to comment.