Skip to content

Commit

Permalink
Only check for X_OK
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Sep 13, 2024
1 parent 68d82c2 commit 08f945c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/opamCommonStubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ CAMLprim value opam_check_executable(value path)
#ifdef _WIN32
ret = _waccess(p, 04);
#else
ret = faccessat(AT_FDCWD, p, R_OK | X_OK, AT_EACCESS);
ret = faccessat(AT_FDCWD, p, X_OK, AT_EACCESS);
#endif
caml_leave_blocking_section();
caml_stat_free(p);
Expand Down

0 comments on commit 08f945c

Please sign in to comment.