]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/88884 fix filesystem::absolute("//") for mingw
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jan 2019 15:32:05 +0000 (15:32 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jan 2019 15:32:05 +0000 (15:32 +0000)
commit2987a93d0824c2d3673af9359b8d74a6f6672c0b
tree50fde227b2b65d8e1c2a5b2a8eb129b9360858c6
parent21a962b24ec1ebcea744c09b87153200ddbeb9ce
PR libstdc++/88884 fix filesystem::absolute("//") for mingw

PR libstdc++/88884
* src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
if the path is already absolute.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
[!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268035 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++17/fs_ops.cc