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 | a3c2efd1c4b9237989fb98322280e23f9972510d (patch) | |
| tree | 1258023bec29be72b361e9183334e5368b8e4a96 /file.c | |
| parent | 8b68dee2aad81dc2594bb769f736226a597c822f (diff) | |
| download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |
