diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-27 09:14:17 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-27 09:14:17 +0000 |
| commit | 752b91f1b16dbf26c3e83e4b879b29ee91adc66a (patch) | |
| tree | 6aad056d086308705b167697d04aa888e5a1bdf3 | |
| parent | cbf4369618d862a657941d621bcf30e2970744f5 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |
