We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a71e24 commit 5633c24Copy full SHA for 5633c24
1 file changed
context.go
@@ -608,13 +608,6 @@ func (c *context) contain(p string) (string, error) {
608
// instead of contain. This is needed for Walk, as if context root is a symlink,
609
// it must be evaluated prior to the Walk
610
func (c *context) containWithRoot(p string, root string) (string, error) {
611
- fi, err := c.driver.Lstat(root)
612
- if err == nil && fi.Mode()&os.ModeSymlink != 0 {
613
- root, err = c.driver.Readlink(root)
614
- if err != nil {
615
- return "", err
616
- }
617
618
sanitized, err := c.pathDriver.Rel(root, p)
619
if err != nil {
620
return "", err
0 commit comments