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:
parent
fe3de995b6
commit
61e6f9b81c
2 changed files with 5 additions and 1 deletions
|
@ -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
2
file.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue