PR libstdc++/79283 fix filesystem::read_symlink for /proc
authorJonathan Wakely <jwakely@redhat.com>
Wed, 25 Oct 2017 12:42:58 +0000 (13:42 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 25 Oct 2017 12:42:58 +0000 (13:42 +0100)
commit220645d0193c21b4662b2800bc5d2de493832fd7
tree36a7d1b6e5939bc418cc29922e074780828a39a1
parenteeb517d3e7fd3717f4fa7cc8a1e6d4499013fee3
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.

From-SVN: r254076
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/src/filesystem/std-ops.cc