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 |
---|---|---|
.. | ||
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
cow-fs_dir.cc | Loading commit data... | |
cow-fs_ops.cc | Loading commit data... | |
cow-fs_path.cc | Loading commit data... | |
cow-string-inst.cc | Loading commit data... | |
default_resource.h | Loading commit data... | |
fs_dir.cc | Loading commit data... | |
fs_ops.cc | Loading commit data... | |
fs_path.cc | Loading commit data... | |
memory_resource.cc | Loading commit data... | |
ostream-inst.cc | Loading commit data... | |
string-inst.cc | Loading commit data... |