The fix for PR 88881 only added a workaround to filesystem::status, but filesystem::symlink_status is also affected by the _wstat bug and needs the same workaround. The recent change to optimize path::parent_path() means that the workaround can be simplified to just use parent_path(). PR libstdc++/88881 * src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (status(const path&, error_code&)): Use parent_path() to remove trailing slash. (symlink_status(const path&, error_code&)): Duplicate workaround for bug in _wstat for paths with trailing slash. * testsuite/27_io/filesystem/operations/remove_all.cc: Check path with trailing slash. * testsuite/27_io/filesystem/operations/status.cc: Likewise. * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. From-SVN: r271755
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| absolute.cc | Loading commit data... | |
| all.cc | Loading commit data... | |
| canonical.cc | Loading commit data... | |
| copy.cc | Loading commit data... | |
| copy_file.cc | Loading commit data... | |
| create_directories.cc | Loading commit data... | |
| create_directory.cc | Loading commit data... | |
| create_symlink.cc | Loading commit data... | |
| current_path.cc | Loading commit data... | |
| equivalent.cc | Loading commit data... | |
| exists.cc | Loading commit data... | |
| file_size.cc | Loading commit data... | |
| is_empty.cc | Loading commit data... | |
| last_write_time.cc | Loading commit data... | |
| permissions.cc | Loading commit data... | |
| proximate.cc | Loading commit data... | |
| read_symlink.cc | Loading commit data... | |
| relative.cc | Loading commit data... | |
| remove.cc | Loading commit data... | |
| remove_all.cc | Loading commit data... | |
| resize_file.cc | Loading commit data... | |
| space.cc | Loading commit data... | |
| status.cc | Loading commit data... | |
| symlink_status.cc | Loading commit data... | |
| temp_directory_path.cc | Loading commit data... | |
| weakly_canonical.cc | Loading commit data... |