diff -r f02cfced8f55 -r 7b6d5c5316ab scripts/wrapper.c --- a/scripts/wrapper.c Sat May 22 12:37:02 2010 +0200 +++ b/scripts/wrapper.c Sun Mar 20 00:55:07 2011 +0100 @@ -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; }