1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (rb_file_s_lstat): Back out.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2009-03-23 10:22:49 +00:00
parent fe3de995b6
commit 61e6f9b81c
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Mar 23 19:22:14 2009 Akinori MUSHA <knu@iDaemons.org>
* file.c (rb_file_s_lstat): Back out.
Mon Mar 23 18:54:57 2009 Akinori MUSHA <knu@iDaemons.org>
* file.c (rb_file_s_stat, rb_file_s_lstat): Remove repeated type

2
file.c
View file

@ -833,7 +833,7 @@ rb_file_s_lstat(VALUE klass, VALUE fname)
rb_secure(2);
FilePathValue(fname);
if (lstat(fname, &st) == -1) {
if (lstat(StringValueCStr(fname), &st) == -1) {
rb_sys_fail(RSTRING_PTR(fname));
}
return stat_new(&st);