summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index d41c2f48a..bdd12d094 100644
--- a/file.c
+++ b/file.c
@@ -3956,7 +3956,7 @@ is_macos_native_path(const char *path)
static int
file_load_ok(const char *path)
{
- return eaccess(path, R_OK);
+ return eaccess(path, R_OK) == 0;
}
extern VALUE rb_load_path;