From ce387e03283dd625c25af115b3a278d80002232c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez=20Bevi=C3=A0?= <6623606+vicmarbev@users.noreply.github.com> Date: Thu, 14 Apr 2022 16:21:30 +0200 Subject: [PATCH] Add hint to symlink error message (#647) --- pkg/files/symlink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/files/symlink.go b/pkg/files/symlink.go index 056fe861..91b3bcf3 100644 --- a/pkg/files/symlink.go +++ b/pkg/files/symlink.go @@ -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) {