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

ruby-changes:11065

From: nobu <ko1@a...>
Date: Fri, 27 Feb 2009 18:14:23 +0900 (JST)
Subject: [ruby-changes:11065] Ruby:r22660 (trunk, ruby_1_8): * file.c (file_load_ok): cygwin allows to open directories.

nobu	2009-02-27 18:14:17 +0900 (Fri, 27 Feb 2009)

  New Revision: 22660

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

  Log:
    * file.c (file_load_ok): cygwin allows to open directories.

  Modified files:
    branches/ruby_1_8/file.c
    trunk/file.c

Index: file.c
===================================================================
--- file.c	(revision 22659)
+++ file.c	(revision 22660)
@@ -4524,7 +4524,7 @@
     int ret = 1;
     int fd = open(path, O_RDONLY);
     if (fd == -1) return 0;
-#if !(defined DOSISH || defined __CYGWIN__)
+#if !defined DOSISH
     {
 	struct stat st;
 	if (fstat(fd, &st) || !S_ISREG(st.st_mode)) {
Index: ruby_1_8/file.c
===================================================================
--- ruby_1_8/file.c	(revision 22659)
+++ ruby_1_8/file.c	(revision 22660)
@@ -4362,7 +4362,7 @@
     int ret = 1;
     int fd = open(file, O_RDONLY);
     if (fd == -1) return 0;
-#if !(defined DOSISH || defined __CYGWIN__)
+#if !defined DOSISH
     {
 	struct stat st;
 	if (fstat(fd, &st) || !S_ISREG(st.st_mode)) {

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

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