Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 36241 Details for
Bug 58489
Patch: fixes a problem where mcl-0.53.00 just dies when not sgid root on linux console.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The Patch File
mcl-0.53.00-uid.patch (text/plain), 1.28 KB, created by
Robert Gill
on 2004-07-26 20:09:38 UTC
(
hide
)
Description:
The Patch File
Filename:
MIME Type:
Creator:
Robert Gill
Created:
2004-07-26 20:09:38 UTC
Size:
1.28 KB
patch
obsolete
>diff -u mcl-0.53.00/Screen.cc mcl-patched/Screen.cc >--- mcl-0.53.00/Screen.cc 2003-09-29 04:51:44.000000000 -0700 >+++ mcl-patched/Screen.cc 2004-07-26 19:22:11.620619536 -0700 >@@ -49,7 +49,8 @@ > // 2.4 with devs (noted by moon@deathmoon.com > else if (1 == (sscanf(tty, "/dev/vc/%d", &ttyno))) > sprintf (buf, "/dev/vcc/a%d", ttyno); >- else { >+ >+ if ((fd = open (buf, O_WRONLY)) < 0) { > usingVirtual = false; > scr_x = scr_y = scr_w = scr_h = 0; > last_screen = new attrib[width * height]; >@@ -58,13 +59,6 @@ > 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); > } > >diff -u mcl-0.53.00/main.cc mcl-patched/main.cc >--- mcl-0.53.00/main.cc 2003-09-29 03:39:14.000000000 -0700 >+++ mcl-patched/main.cc 2004-07-26 18:18:01.000000000 -0700 >@@ -50,7 +50,7 @@ > // 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 > screen = new Screen(); >- setegid(getgid()); >+ seteuid(getuid()); > > time (¤t_time); > srand(current_time);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58489
: 36241