[前][次][番号順一覧][スレッド一覧]

ruby-changes:15705

From: usa <ko1@a...>
Date: Wed, 5 May 2010 15:56:00 +0900 (JST)
Subject: [ruby-changes:15705] Ruby:r27626 (trunk): * file.c (rb_stat): use STAT macro instead of calling stat() directly.

usa	2010-05-05 15:55:45 +0900 (Wed, 05 May 2010)

  New Revision: 27626

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27626

  Log:
    * file.c (rb_stat): use STAT macro instead of calling stat() directly.
      reported by Bill Kelly.  [ruby-core:30012]

  Modified files:
    trunk/ChangeLog
    trunk/file.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27625)
+++ ChangeLog	(revision 27626)
@@ -1,3 +1,8 @@
+Wed May  5 15:54:35 2010  NAKAMURA Usaku  <usa@r...>
+
+	* 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@r...>
 
 	* bootstraptest/test_io.rb (megacontent-copy_stream): get rid of
Index: file.c
===================================================================
--- file.c	(revision 27625)
+++ file.c	(revision 27626)
@@ -795,7 +795,7 @@
     }
     FilePathValue(file);
     file = rb_str_encode_ospath(file);
-    return stat(StringValueCStr(file), st);
+    return STAT(StringValueCStr(file), st);
 }
 
 #ifdef _WIN32

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]