[libcxx][filesystem] Remove setgid from parent before testing permissions
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Mon, 18 Jul 2016 06:06:50 +0000 (06:06 +0000)
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Mon, 18 Jul 2016 06:06:50 +0000 (06:06 +0000)
commit16be8ee1fff9793becfde9d9815b257aadce1ca3
treeb1298165526cfbe611dec2ccdcff68a33e104fed
parenta23470efe73675cedb71693d9253e50a39dcb914
[libcxx][filesystem] Remove setgid from parent before testing permissions

man page for mkdir says: "If the parent directory has the set-group-ID bit set,
then so will the newly created directory."

Differential Revision: https://reviews.llvm.org/D22265

llvm-svn: 275760
libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp