summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental/filesystem
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-21 22:42:42 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-21 22:42:42 +0000
commit44e2ebadb2582936e4d6608e50ef234e22c89f87 (patch)
tree55f5144a3abfbbef93c61a9757bf8084fdc3a747 /libcxx/include/experimental/filesystem
parent25da86a5dbb88f4916441d971eb44e21e2613d5c (diff)
downloadbcm5719-llvm-44e2ebadb2582936e4d6608e50ef234e22c89f87.tar.gz
bcm5719-llvm-44e2ebadb2582936e4d6608e50ef234e22c89f87.zip
Implement LWG issue 2720. Replace perms::resolve_symlinks with perms::symlink_nofollow.
This changes how filesystem::permissions(p, perms) handles symlinks. Previously symlinks were not resolved by default instead only getting resolved when "perms::resolve_symlinks" was used. After this change symlinks are resolved by default and perms::symlink_nofollow must be given to change this. This issue has not yet been moved to Ready status, and I will revert if it doesn't get moved at the current meeting. However I feel confident that it will and it's nice to have implementations when moving issues. llvm-svn: 273328
Diffstat (limited to 'libcxx/include/experimental/filesystem')
-rw-r--r--libcxx/include/experimental/filesystem2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/experimental/filesystem b/libcxx/include/experimental/filesystem
index be7d23faee6..7de93fdf8f1 100644
--- a/libcxx/include/experimental/filesystem
+++ b/libcxx/include/experimental/filesystem
@@ -292,7 +292,7 @@ enum class _LIBCPP_TYPE_VIS perms : unsigned
add_perms = 0x10000,
remove_perms = 0x20000,
- resolve_symlinks = 0x40000
+ symlink_nofollow = 0x40000
};
_LIBCPP_INLINE_VISIBILITY
OpenPOWER on IntegriCloud