summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-03 14:10:28 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-03 14:10:28 (GMT)
commitb602cb85c90bba26bff04d570bf108658016cf07 (patch)
treeb934631ea9c7687fe558b1a69400c564afe595e0 /Source/kwsys/SystemTools.cxx
parent382c4fca6b895c2c7a68445918a8fd73a15e1f91 (diff)
parent3e6ec47c421808123efac2cf67850f8b75839c67 (diff)
downloadCMake-b602cb85c90bba26bff04d570bf108658016cf07.zip
CMake-b602cb85c90bba26bff04d570bf108658016cf07.tar.gz
CMake-b602cb85c90bba26bff04d570bf108658016cf07.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2016-08-02 (3f55579d)
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 9b56db0..d479ee1 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -1321,8 +1321,13 @@ bool SystemTools::FileExists(const std::string& filename)
SystemTools::ConvertToWindowsExtendedPath(filename).c_str())
!= INVALID_FILE_ATTRIBUTES);
#else
+// SCO OpenServer 5.0.7/3.2's command has 711 permission.
+#if defined(_SCO_DS)
+ return access(filename.c_str(), F_OK) == 0;
+#else
return access(filename.c_str(), R_OK) == 0;
#endif
+#endif
}
//----------------------------------------------------------------------------