summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/if/FilePermissions.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-28 13:59:58 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-29 12:55:03 (GMT)
commit2e82ba70b34fe83db22c3fa276c7968c291ea84c (patch)
tree479424cd39b62a5c910b4b710b53e04c4f20e2b3 /Tests/RunCMake/if/FilePermissions.cmake
parent5589bcb1bf3b7bf6ac74f91d59efb736eb0dc932 (diff)
downloadCMake-2e82ba70b34fe83db22c3fa276c7968c291ea84c.zip
CMake-2e82ba70b34fe83db22c3fa276c7968c291ea84c.tar.gz
CMake-2e82ba70b34fe83db22c3fa276c7968c291ea84c.tar.bz2
Tests: Avoid creating world-writable paths
These were added by commit 337bc5662c (if(): add operators IS_READABLE, IS_WRITABLE and IS_EXECUTABLE., 2023-10-21) but are not actually necessary.
Diffstat (limited to 'Tests/RunCMake/if/FilePermissions.cmake')
-rw-r--r--Tests/RunCMake/if/FilePermissions.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/if/FilePermissions.cmake b/Tests/RunCMake/if/FilePermissions.cmake
index 9d5db64..f62b107 100644
--- a/Tests/RunCMake/if/FilePermissions.cmake
+++ b/Tests/RunCMake/if/FilePermissions.cmake
@@ -7,7 +7,7 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/readable.txt" "foo")
file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/readable.txt" PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/writable.txt" "foo")
-file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/writable.txt" PERMISSIONS OWNER_WRITE GROUP_WRITE WORLD_WRITE)
+file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/writable.txt" PERMISSIONS OWNER_WRITE GROUP_WRITE)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/executable.txt" "foo")
file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/executable.txt" PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
@@ -23,7 +23,7 @@ if(NOT WIN32)
file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/readable-dir" PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/writable-dir")
- file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/writable-dir" PERMISSIONS OWNER_WRITE GROUP_WRITE WORLD_WRITE)
+ file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/writable-dir" PERMISSIONS OWNER_WRITE GROUP_WRITE)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/executable-dir")
file(CHMOD "${CMAKE_CURRENT_BINARY_DIR}/executable-dir" PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)