Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(extractor): do not use Path.readlink to check for empty targets
We cannot use Path.readlink to check if the symlink target is not set (that happens with f_badsymlinks.img on Darwin systems, you need a broken filesystem and an OS that supports it). That's because Path.readlink returns a Path object with an empty name (i.e. Path("")), which is indiscernable from a symlink target that is the current directory (i.e. Path(".")). Since there is no difference between Path("") and Path("."), we can't differentiate between a symlink with an empty target and a symlink that points at the current directory.
- Loading branch information