diff -r f02cfced8f55 -r 2242d87c5404 scripts/wrapper.c --- a/scripts/wrapper.c Sat May 22 12:37:02 2010 +0200 +++ b/scripts/wrapper.c Thu Oct 07 22:37:06 2010 +0200 @@ -71,7 +71,7 @@ if( stat( testname, &st ) == 0 ) { /* OK, exists. Is it a regular file, or a * symlink, which the current user may execute? */ - if( S_ISREG( st.st_mode ) && ! access( testname, X_OK || R_OK ) ) { + if( S_ISREG( st.st_mode ) && ! access( testname, X_OK | R_OK ) ) { fullname = strdup( testname ); break; }