PR libstdc++/79283 fix filesystem::read_symlink for /proc
commit730671b58f978e5e77a492d1ed6406566d5b924e
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Oct 2017 12:42:58 +0000 (25 12:42 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Oct 2017 12:42:58 +0000 (25 12:42 +0000)
tree36a7d1b6e5939bc418cc29922e074780828a39a1
parent5a6a0bf5071c7fb52650fc8892c37270a618486f
PR libstdc++/79283 fix filesystem::read_symlink for /proc

PR libstdc++/79283
* src/filesystem/ops.cc (read_symlink): Handle st_size being zero.
* src/filesystem/std-ops.cc (read_symlink): Likewise.
(do_copy_file) [!NEED_DO_COPY_FILE]: Avoid multiple definitions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254076 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/src/filesystem/std-ops.cc