ghc::filesystem::remove_all fails if symlink target is pointing to a read only filesystem #132
Labels
available on master
Fix is done on master branch, issue closed on next release
bug
Something isn't working
POSIX
POSIX type backend is affected
Milestone
Hi!
The call to
ghc::filesystem::remove_all(path)
(same with the version with thestd::error_code
) appears to fail when "path" is a symlink on a read-write filesystem that points to a non-empty directory on a read-only filesystem. It works correctly when the symlink target is a file or if the target directory is empty. The call returns an error with the "Read-only file system" message.Tested on Ubuntu 18.04 with gcc 9.2.0 with filesystem 1.0.8 as well as current master. Using
std::filesystem
instead, the symlink is deleted as expected.Test procedure:
remove_all
Sample executable:
Thanks!
The text was updated successfully, but these errors were encountered: