Skip to content

Commit 7f1d79d

Browse files
authored
[SYCLomatic] Require only necessary permission when checking permission of out root directory (#1956)
Signed-off-by: intwanghao <[email protected]>
1 parent 3c389fc commit 7f1d79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/DPCT/Utility.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4860,7 +4860,7 @@ void createDirectories(const clang::tooling::UnifiedPath &FilePath,
48604860
if (IgnoreExisting &&
48614861
llvm::sys::fs::is_directory(FilePath.getCanonicalPath())) {
48624862
auto perm = sys::fs::getPermissions(FilePath.getCanonicalPath());
4863-
if (perm && (perm.get() & sys::fs::perms::owner_all)) {
4863+
if (perm && (perm.get() & sys::fs::perms::owner_write)) {
48644864
return;
48654865
}
48664866
}

0 commit comments

Comments
 (0)