is a regular file and fail with EINVAL if it is not.
This problem was highlight by bug 89481 although this doesn't solve the
actual problem reported in that bug.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2723
res = ret;
return;
}
- /* just look for any X bit set
+ /* just look for regular file with any X bit set
XXX do proper permissions check?
*/
- if ((st.st_mode & 0111) == 0) {
+ if ((st.st_mode & 0100111) == 0100000) {
res = -VKI_EACCES;
return;
}