diff options
Diffstat (limited to 'scripts/wrapper.c')
-rw-r--r-- | scripts/wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wrapper.c b/scripts/wrapper.c index 3d815b43..347695df 100644 --- a/scripts/wrapper.c +++ b/scripts/wrapper.c @@ -66,7 +66,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; } |