diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2016-08-02 13:52:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-03 14:10:21 (GMT) |
commit | 3e6ec47c421808123efac2cf67850f8b75839c67 (patch) | |
tree | 1c06612a59a7d9c6be48b95d54092177459b5d52 /SystemTools.cxx | |
parent | 6bc3073e23af70bde3e8a7659aa51a784deeec9c (diff) | |
download | CMake-3e6ec47c421808123efac2cf67850f8b75839c67.zip CMake-3e6ec47c421808123efac2cf67850f8b75839c67.tar.gz CMake-3e6ec47c421808123efac2cf67850f8b75839c67.tar.bz2 |
KWSys 2016-08-02 (3f55579d)
Code extracted from:
http://public.kitware.com/KWSys.git
at commit 3f55579d113f92fcda8f9eff7046c36873c121f6 (master).
Upstream Shortlog
-----------------
Patrick Welche (3):
8a989b44 SystemInformation: Treat BSDs more uniformly
2ce319a6 SystemInformation: Treat Solaris the same as Linux
3f55579d SystemTools: Fix FileExists for some SCO OpenServer file permissions
Diffstat (limited to 'SystemTools.cxx')
-rw-r--r-- | SystemTools.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SystemTools.cxx b/SystemTools.cxx index 9b56db0..d479ee1 100644 --- a/SystemTools.cxx +++ b/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 } //---------------------------------------------------------------------------- |