summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-12 18:30:57 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-12 18:30:57 (GMT)
commitb4bf41434c048a47e55302b74ee54f9c097d32ed (patch)
treeb5040c3e336a4082562cac765a2574a6d70f3d33 /Source/kwsys
parent002679fdba0e1ea19aca7e7a4303da25ab34df7c (diff)
downloadCMake-b4bf41434c048a47e55302b74ee54f9c097d32ed.zip
CMake-b4bf41434c048a47e55302b74ee54f9c097d32ed.tar.gz
CMake-b4bf41434c048a47e55302b74ee54f9c097d32ed.tar.bz2
ENH: Only look for executable until found
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 6b8099c..04d8e08 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -626,8 +626,9 @@ bool SystemTools::SameFile(const char* file1, const char* file2)
// return true if the file exists
bool SystemTools::FileExists(const char* filename)
{
- struct stat fs;
- if (stat(filename, &fs) != 0)
+// struct stat fs;
+// if (stat(filename, &fs) != 0)
+ if ( access(filename, F_OK) != 0 )
{
return false;
}