Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 58489
Collapse All | Expand All

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

Return to bug 58489