diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-04-19 19:02:39 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-04-19 19:02:39 +0100 |
commit | 149052510483ab2ea3cf02d085e1f31ebe5360c5 (patch) | |
tree | 969f95aefd9527a1f249ca7155f17f8ec69d9f1c /gcc/cp/expr.c | |
parent | 9c476ad42618dd03353d8f8ae82b00a945974ecd (diff) | |
download | gcc-149052510483ab2ea3cf02d085e1f31ebe5360c5.zip gcc-149052510483ab2ea3cf02d085e1f31ebe5360c5.tar.gz gcc-149052510483ab2ea3cf02d085e1f31ebe5360c5.tar.bz2 |
libstdc++/70609 fix filesystem::copy()
PR libstdc++/70609
* src/filesystem/ops.cc (close_fd): New function.
(do_copy_file): Set permissions before copying file contents. Check
result of closing file descriptors. Don't copy streambuf when file
is empty.
(copy(const path&, const path&, copy_options, error_code&)): Use
lstat for source file when copy_symlinks is set.
* testsuite/experimental/filesystem/operations/copy.cc: Test copy().
From-SVN: r235215
Diffstat (limited to 'gcc/cp/expr.c')
0 files changed, 0 insertions, 0 deletions