diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-01 03:12:21 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-01 03:12:21 +0000 |
commit | b77b7c30d4855734384a095db41a734d315bb8fa (patch) | |
tree | ae6cd78921bf626d54145b5485474bf59c3dceb4 /file.c | |
parent | ff338e4e581cc264abf4c5bfd3501bb77c16335f (diff) | |
download | ruby-b77b7c30d4855734384a095db41a734d315bb8fa.tar.gz ruby-b77b7c30d4855734384a095db41a734d315bb8fa.tar.xz ruby-b77b7c30d4855734384a095db41a734d315bb8fa.zip |
2000-02-01
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |