diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-25 21:10:58 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-25 21:10:58 +0000 |
commit | 5163918c113d5d0cbfabe69effbf3381af2ba4fe (patch) | |
tree | 6e0ff9f8c510431cf675ca9be2640d8761085b97 /dln.c | |
parent | 327275d264fe8024f7b77b524c9fa1e67213e927 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |