You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] lstat follows symlinks on direct binds, so test -L / [ -h ] return false #254
0 and 0, matching bash on the host (test -L ld → 0).
Actual Behavior
1 and 1. Inside the in-memory VFS the same script prints 0.
Additional Context
VfsKernel::lstat (src/vfs_kernel.rs:527-537) maps the path with resolve_host() and then calls host_stat() on the host path, which follows the link, so FileStat::is_symlink is never true on a direct bind. #194 fixed read_link the same way with resolve_host_nofollow but left lstat alone. Found while reviewing #220, where readlink -f/-e/-m relies on lstat().is_symlink and so doesn't follow any links under a bind.
Possible Solution
For host paths, use resolve_host_nofollow plus std::fs::symlink_metadata (and the wasm equivalent) in lstat, the same way read_link does since #194.
Activity