[PATCH] D22265: [libcxx][filesystem] Remove setgid from parent before testing permissions
Jonas Hahnfeld via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 17 23:14:12 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL275760: [libcxx][filesystem] Remove setgid from parent before testing permissions (authored by Hahnfeld).
Changed prior to commit:
https://reviews.llvm.org/D22265?vs=63672&id=64275#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22265
Files:
libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
Index: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
===================================================================
--- libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
+++ libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
@@ -60,6 +60,9 @@
TEST_CASE(create_directory_one_level)
{
scoped_test_env env;
+ // Remove setgid which mkdir would inherit
+ permissions(env.test_root, perms::remove_perms | perms::set_gid);
+
const path dir = env.make_env_path("dir1");
const path attr_dir = env.create_dir("dir2");
permissions(attr_dir, perms::none);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22265.64275.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160718/dda52102/attachment.bin>
More information about the cfe-commits
mailing list