* 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:
parent
fe3de995b6
commit
61e6f9b81c
@ -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>
|
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
|
* file.c (rb_file_s_stat, rb_file_s_lstat): Remove repeated type
|
||||||
|
2
file.c
2
file.c
@ -833,7 +833,7 @@ rb_file_s_lstat(VALUE klass, VALUE fname)
|
|||||||
|
|
||||||
rb_secure(2);
|
rb_secure(2);
|
||||||
FilePathValue(fname);
|
FilePathValue(fname);
|
||||||
if (lstat(fname, &st) == -1) {
|
if (lstat(StringValueCStr(fname), &st) == -1) {
|
||||||
rb_sys_fail(RSTRING_PTR(fname));
|
rb_sys_fail(RSTRING_PTR(fname));
|
||||||
}
|
}
|
||||||
return stat_new(&st);
|
return stat_new(&st);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user