diff -r 4e8dd617a1ca -r 2d3a2b3f4a0c scripts/wrapper.c --- a/scripts/wrapper.c Sun Aug 30 19:58:41 2009 +0200 +++ b/scripts/wrapper.c Fri Jul 30 00:18:02 2010 +0200 @@ -66,7 +66,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; }