summaryrefslogtreecommitdiffstats
path: root/file.c
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
commita3c2efd1c4b9237989fb98322280e23f9972510d (patch)
tree1258023bec29be72b361e9183334e5368b8e4a96 /file.c
parent8b68dee2aad81dc2594bb769f736226a597c822f (diff)
downloadruby-a3c2efd1c4b9237989fb98322280e23f9972510d.tar.gz
ruby-a3c2efd1c4b9237989fb98322280e23f9972510d.tar.xz
ruby-a3c2efd1c4b9237989fb98322280e23f9972510d.zip
* file.c (file_load_ok): cygwin allows to open directories.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22660 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 213491bda..f6c4286f5 100644
--- a/file.c
+++ b/file.c
@@ -4524,7 +4524,7 @@ file_load_ok(const char *path)
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)) {