Skip to content

Commit

Permalink
* file.c (file_load_ok): cygwin allows to open directories.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 27, 2009
1 parent be76793 commit 8d325b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 8d325b6

Please sign in to comment.