mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
010526
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
327275d264
commit
5163918c11
1 changed files with 1 additions and 1 deletions
2
dln.c
2
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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue