View | Details | Raw Unified
Collapse All | Expand All

(-) mcl-0.53.00/Screen.cc (-8 / +2 lines)
 Lines 49-55    Link Here 
    // 2.4 with devs (noted by moon@deathmoon.com
    // 2.4 with devs (noted by moon@deathmoon.com
    else if (1 == (sscanf(tty, "/dev/vc/%d", &ttyno)))
    else if (1 == (sscanf(tty, "/dev/vc/%d", &ttyno)))
        sprintf (buf, "/dev/vcc/a%d", ttyno);
        sprintf (buf, "/dev/vcc/a%d", ttyno);
    else {
    if ((fd = open (buf, O_WRONLY)) < 0) {
        usingVirtual = false;
        usingVirtual = false;
        scr_x = scr_y = scr_w = scr_h = 0;
        scr_x = scr_y = scr_w = scr_h = 0;
        last_screen = new attrib[width * height];
        last_screen = new attrib[width * height];
 Lines 58-70    Link Here 
        out = new Buffer(32000);
        out = new Buffer(32000);
    }
    }
    if (usingVirtual) {
      if ((fd = open (buf, O_WRONLY)) < 0) {
	fprintf (stderr, "\nFailed to open %s: %m. \nPerhaps your permissions are wrong?\n\n", buf);
	exit (EXIT_FAILURE);
      }
    }
    init_curses(usingVirtual);
    init_curses(usingVirtual);
}
}
(-) mcl-0.53.00/main.cc (-1 / +1 lines)
 Lines 50-56    Link Here 
    //  Do this right at the start, so that a) perl can startup correctly,
    //  Do this right at the start, so that a) perl can startup correctly,
    //  and b) to avoid any unforseen holes in eg. configfile loading     -N
    //  and b) to avoid any unforseen holes in eg. configfile loading     -N
    screen = new Screen();
    screen = new Screen();
    setegid(getgid());
    seteuid(getuid());
    
    
    time (&current_time);
    time (&current_time);
    srand(current_time);
    srand(current_time);