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

* file.c (rb_stat): use STAT macro instead of calling stat() directly.

reported by Bill Kelly.  [ruby-core:30012]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-05-05 06:55:45 +00:00
parent a6e33fd71c
commit 54062a76e7
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed May 5 15:54:35 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* file.c (rb_stat): use STAT macro instead of calling stat() directly.
reported by Bill Kelly. [ruby-core:30012]
Wed May 5 11:43:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bootstraptest/test_io.rb (megacontent-copy_stream): get rid of

2
file.c
View file

@ -795,7 +795,7 @@ rb_stat(VALUE file, struct stat *st)
}
FilePathValue(file);
file = rb_str_encode_ospath(file);
return stat(StringValueCStr(file), st);
return STAT(StringValueCStr(file), st);
}
#ifdef _WIN32