]> git.ipfire.org Git - thirdparty/gcc.git/commit
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 19:28:42 +0000 (20:28 +0100)
commit8b7e7fcb5fff8255122a8fa94109f7ae05aeaa81
tree1b7e1ea66a3f4e5d283b6acbfdadec441ec884e4
parentca6c1bda8023d17577f1fca0b406402fbaaba63f
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.

(cherry picked from commit 6a13a4e3f29fc4ce5eff96d74ba965c9fdc02184)
libstdc++-v3/src/c++17/fs_ops.cc
libstdc++-v3/src/filesystem/ops.cc