go-billy icon indicating copy to clipboard operation
go-billy copied to clipboard

question: chroot does not process path target ​​from symlink?

Open gebv opened this issue 4 years ago • 0 comments

Chroot does not process path target ​​from symlink? It is normal behavior?

Follow concept code

baseDir := "/foo/bar"
fs := chroot.New(&billyFilesystemSomeImpl{}, baseDir)
// lrwxr-xr-x /foo/bar/lint-to-tmp -> /tmp
fs.Open("/foo/bar/link-to-tmp")
// opened without errors

gebv avatar Apr 25 '21 04:04 gebv