summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-05 06:55:45 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-05 06:55:45 +0000
commit54062a76e723e35a7cf9a6a0b250f70e893f23ed (patch)
tree521a2db13b88af7846245127e88a4a3ede85c589 /file.c
parenta6e33fd71cfcd3c9569e7fca72a0adf03d514cc2 (diff)
* 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
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
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