From 54062a76e723e35a7cf9a6a0b250f70e893f23ed Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 5 May 2010 06:55:45 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ file.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4729a7c5bc..6430c5112e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed May 5 15:54:35 2010 NAKAMURA Usaku + + * 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 * bootstraptest/test_io.rb (megacontent-copy_stream): get rid of diff --git a/file.c b/file.c index 80210b8456..f8bbaa71c6 100644 --- a/file.c +++ b/file.c @@ -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