Skip to content
Snippets Groups Projects
Commit 9fa7573f authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

BUG: Most of time when asking if file exists, we actually want to read it......

BUG: Most of time when asking if file exists, we actually want to read it... Should fix Bug #809 - FIND_INCLUDE should check readability
parent f0860b5b
No related branches found
No related tags found
No related merge requests found
......@@ -643,10 +643,10 @@ bool SystemTools::FileExists(const char* filename)
#ifdef _MSC_VER
# define access _access
#endif
#ifndef F_OK
#define F_OK 0
#ifndef R_OK
# define R_OK 04
#endif
if ( access(filename, F_OK) != 0 )
if ( access(filename, R_OK) != 0 )
{
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment