diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-05-29 23:00:53 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-05-29 23:00:53 +0100 |
commit | 3cb929a32af3986ad95ca511ea84d0863c29ce57 (patch) | |
tree | 3aab7c7b08315be8684c214abba7437dce9fb60f /gcc/go/go-gcc.cc | |
parent | e5ccb10ad04e5cc1c44ea4d50a501840927ad70e (diff) | |
download | gcc-3cb929a32af3986ad95ca511ea84d0863c29ce57.zip gcc-3cb929a32af3986ad95ca511ea84d0863c29ce57.tar.gz gcc-3cb929a32af3986ad95ca511ea84d0863c29ce57.tar.bz2 |
PR libstdc++/88881 fix filesystem::symlink_status for Windows
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
Diffstat (limited to 'gcc/go/go-gcc.cc')
0 files changed, 0 insertions, 0 deletions