summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-27 09:14:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-27 09:14:17 +0000
commit752b91f1b16dbf26c3e83e4b879b29ee91adc66a (patch)
tree6aad056d086308705b167697d04aa888e5a1bdf3
parentcbf4369618d862a657941d621bcf30e2970744f5 (diff)
* file.c (file_load_ok): cygwin allows to open directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 8596613d05..304a34d04f 100644
--- a/file.c
+++ b/file.c
@@ -4362,7 +4362,7 @@ file_load_ok(file)
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)) {