DirWalker doesn't properly resolve symlinks that use relative paths
Opened this issue · 0 comments
stensonowen commented
When smllr
encounters a symbolic containing a relative path, it evaluates the absolute path as if the symlink were in env::current_dir()
. Instead it should evaluate the path from the location of the link.
Steps to reproduce:
dd if=/dev/urandom of=foo bs=4K count=1
mkdir bar
cd bar
ln -s ../foo foo_symlink
cd ..
RUST_LOG=warn ./smllr .
WARN:smllr::walker: Couldn't get metadata for "../gettysburg_addr": No such file or directory (os error 2)