[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01186] Bug in chardev?

From: Andrew Hunt <Andy@...>
Date: 2000-01-26 01:49:48 UTC
List: ruby-talk #1186
Either I'm going blind, or there's a bug in File::Stat.chardev?

static VALUE
rb_stat_c(obj)
    VALUE obj;
{
    if (S_ISBLK(get_stat(obj)->st_mode)) return Qtrue;
          ^^^^^

    return Qfalse;
}

Shouldn't that be S_ISCHR instead?

--
Andrew Hunt, Toolshed Technologies, Inc.   
Innovative Object-Oriented Software Development
web:   http://www.toolshed.com       email: andy@toolshed.com
--
Our New Book: "The Pragmatic Programmer" Published by Addison-Wesley Oct 1999
              (see www.pragmaticprogrammer.com/ppbook)
--

In This Thread

Prev Next