libstdc++/71320 Add or remove file permissions correctly
authorJonathan Wakely <jwakely@redhat.com>
Mon, 6 Jun 2016 15:50:01 +0000 (16:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 6 Jun 2016 15:50:01 +0000 (16:50 +0100)
commit94229fb6dcd63c2dfaa6c68d6a03ada2697be729
treeb15bf139bf144af8c5e2d5e8f92998649060292b
parent0a0ec53d12b6a8ba94dc19db514ce1d3ef2af669
libstdc++/71320 Add or remove file permissions correctly

PR libstdc++/71320
* src/filesystem/ops.cc (permissions(const path&, perms, error_code&)):
Add or remove permissions according to perms argument.
* testsuite/experimental/filesystem/operations/permissions.cc: New
test.

From-SVN: r237136
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/permissions.cc [new file with mode: 0644]