mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dln.c (dln_find_1): break if path list end, even for too long
path names. (ruby-bugs-ja:PR#412) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
54a5eae8a9
commit
7d5435bb1b
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Mar 26 20:25:10 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* dln.c (dln_find_1): break if path list end, even for too long
|
||||||
|
path names. (ruby-bugs-ja:PR#412)
|
||||||
|
|
||||||
Wed Mar 26 13:19:32 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Wed Mar 26 13:19:32 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (avalue_splat): new function to do unary * (splat)
|
* eval.c (avalue_splat): new function to do unary * (splat)
|
||||||
|
|
4
dln.c
4
dln.c
|
@ -1741,7 +1741,7 @@ dln_find_1(fname, path, exe_flag)
|
||||||
*bp = '\0';
|
*bp = '\0';
|
||||||
fprintf(stderr, "\tDirectory \"%s\"\n", fbuf);
|
fprintf(stderr, "\tDirectory \"%s\"\n", fbuf);
|
||||||
fprintf(stderr, "\tFile \"%s\"\n", fname);
|
fprintf(stderr, "\tFile \"%s\"\n", fname);
|
||||||
continue;
|
goto next;
|
||||||
}
|
}
|
||||||
memcpy(bp, fname, i + 1);
|
memcpy(bp, fname, i + 1);
|
||||||
|
|
||||||
|
@ -1795,6 +1795,8 @@ dln_find_1(fname, path, exe_flag)
|
||||||
#else
|
#else
|
||||||
if (mac_fullpath = _macruby_exist_file_in_libdir_as_posix_name(fbuf))
|
if (mac_fullpath = _macruby_exist_file_in_libdir_as_posix_name(fbuf))
|
||||||
return mac_fullpath;
|
return mac_fullpath;
|
||||||
|
|
||||||
|
next:
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue