summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-25 21:10:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-25 21:10:58 +0000
commit5163918c113d5d0cbfabe69effbf3381af2ba4fe (patch)
tree6e0ff9f8c510431cf675ca9be2640d8761085b97 /dln.c
parent327275d264fe8024f7b77b524c9fa1e67213e927 (diff)
010526
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index 40a326df63..d2c2c78c1b 100644
--- a/dln.c
+++ b/dln.c
@@ -1668,7 +1668,7 @@ dln_find_1(fname, path, exe_flag)
if (stat(fbuf, &st) == 0) {
if (exe_flag == 0) return fbuf;
/* looking for executable */
- if (eaccess(fbuf, X_OK) == 0) return fbuf;
+ if (!S_ISDIR(st.st_mode) && eaccess(fbuf, X_OK) == 0) return fbuf;
}
#else
if (mac_fullpath = _macruby_exist_file_in_libdir_as_posix_name(fbuf)) {