Ignore perms::symlink_nofollow on non-symlinks
authorJonathan Wakely <jwakely@redhat.com>
Sat, 22 Oct 2016 11:42:16 +0000 (12:42 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 22 Oct 2016 11:42:16 +0000 (12:42 +0100)
commit4e04812da209203a10fbb7197502dd5b8a00459c
tree918bd00e2ea5664a78f8c0c01380db76dcf2c198
parent2e721daadf386fce372229a407784ec21cf80e8a
Ignore perms::symlink_nofollow on non-symlinks

* src/filesystem/ops.cc (permissions(const path&, perms, error_code&)):
Ignore symlink_nofollow flag if file is not a symlink.
* testsuite/experimental/filesystem/operations/permissions.cc: Test
symlink_nofollow on non-symlinks.

From-SVN: r241438
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/permissions.cc