gulrak / filesystem

An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad error handling in fs::status for errors on the symlink target

gulrak opened this issue · comments

Describe the bug
The status result of symlinks to non-existing targets or targets that can not be accessed due to rights is wrong.

To Reproduce
Possible test path on Linux is /proc/1/task/1/cwd

Expected behavior
The error code should be set, file_type for symlinks to non-existing targets should be not_found.

This is now part of release v1.5.4