libstdc++: Fix unnecessary allocations in read_symlink [PR 96484]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Aug 2020 17:44:50 +0000 (18:44 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 6 Aug 2020 17:44:50 +0000 (18:44 +0100)
commit6a13a4e3f29fc4ce5eff96d74ba965c9fdc02184
tree295380acc23a45173d75aa4e1abdf00dbe430a35
parent6251ea15f55ec57d6325c2e37e88b22315aba658
libstdc++: Fix unnecessary allocations in read_symlink [PR 96484]

libstdc++-v3/ChangeLog:

PR libstdc++/96484
* src/c++17/fs_ops.cc (fs::read_symlink): Return an error
immediately for non-symlinks.
* src/filesystem/ops.cc (fs::read_symlink): Likewise.
libstdc++-v3/src/c++17/fs_ops.cc
libstdc++-v3/src/filesystem/ops.cc