diff -r 4e8dd617a1ca -r 110ba570a70a scripts/wrapper.c --- a/scripts/wrapper.c Sun Aug 30 19:58:41 2009 +0200 +++ b/scripts/wrapper.c Tue Jun 22 23:49:23 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; }