summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wrapper.c b/scripts/wrapper.c
index f836188..59630f6 100644
--- a/scripts/wrapper.c
+++ b/scripts/wrapper.c
@@ -71,7 +71,7 @@ int main( int argc,
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;
}