summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-20 10:08:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-20 10:08:49 +0000
commit879fd5d904e2796ad993128312a954b0ecb509e5 (patch)
tree64814ecb37bf8915942994a82df25be7ad851eae /io.c
parent7f50895e04afe3872ef5b0a3a5820b99584083ea (diff)
don't use S_ISDIR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io.c b/io.c
index 11bdc85910..784f7c60a1 100644
--- a/io.c
+++ b/io.c
@@ -396,8 +396,7 @@ wsplit_p(OpenFile *fptr)
if (!(fptr->mode & FMODE_WSPLIT_INITIALIZED)) {
struct stat buf;
if (fstat(fileno(f), &buf) == 0 &&
- !(S_ISREG(buf.st_mode) ||
- S_ISDIR(buf.st_mode))
+ !S_ISREG(buf.st_mode)
#if defined(HAVE_FCNTL) && defined(F_GETFL) && defined(O_NONBLOCK)
&& (r = fcntl(fileno(f), F_GETFL)) != -1 &&
!(r & O_NONBLOCK)