From e4b53b22228d935847b72e8f9ab0f49a15b54215 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 1 Feb 2000 03:12:21 +0000 Subject: 2000-02-01 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index efee0cb2b2..47d5274d8e 100644 --- a/file.c +++ b/file.c @@ -531,7 +531,7 @@ test_c(obj, fname) struct stat st; if (rb_stat(fname, &st) < 0) return Qfalse; - if (S_ISBLK(st.st_mode)) return Qtrue; + if (S_ISCHR(st.st_mode)) return Qtrue; return Qfalse; } @@ -1738,7 +1738,7 @@ static VALUE rb_stat_c(obj) VALUE obj; { - if (S_ISBLK(get_stat(obj)->st_mode)) return Qtrue; + if (S_ISCHR(get_stat(obj)->st_mode)) return Qtrue; return Qfalse; } -- cgit v1.2.3