Changeset 116

Show
Ignore:
Timestamp:
02/26/06 23:03:46 (3 years ago)
Author:
bonbons
Message:

Fixed incorrect negative S_ISCHR() test for /dev/console

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.4/src/tools/vexec.c

    r115 r116  
    193193                                if (stat("/dev/console", &st) == -1) { 
    194194                                        vu_printf("Failed to stat /dev/console:  %s\n", strerror(errno)); 
    195                                 } else if (!S_ISCHR(st.st_mode)) { 
     195                                } else if (S_ISCHR(st.st_mode)) { 
    196196                                        int fd = open("/dev/console", O_RDWR); // O_NOCTTY); 
    197197                                        if (fd < 0) vu_printf("Failed to open /dev/console:  %s\n", strerror(errno));