Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138688 - The setuid patch for x11-base/xorg-server-1.0.2 is broken.
Summary: The setuid patch for x11-base/xorg-server-1.0.2 is broken.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-01 04:12 UTC by Rudo Thomas
Modified: 2007-01-24 21:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-perl:XML-Parser-2.34:20070124-212406.log (dev-perl:XML-Parser-2.34:20070124-212406.log,3.65 KB, text/plain)
2007-01-24 21:26 UTC, Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rudo Thomas 2006-07-01 04:12:30 UTC
Hi,

I have looked at the x11-base/xorg-server/files/x11r7.0-setuid.diff file in the portage tree and found the patch broken.

As of revision 1.1 of the file in portage CVS, the write.c hunk says:

-                       setuid(getuid());
+                       if (setuid(getuid() == -1)
+                           FatalError("xf86writeConfigFile(): "

Note the missing closing parenthesis after getuid(). I wonder how it could even compile (haven't tried it myself though).

Please fix the patch.

Bye for now.

Rudo.
Comment 1 Joshua Baergen (RETIRED) gentoo-dev 2006-07-01 09:31:06 UTC
It probably doesn't compile the parser, then.  I'll fix this up anyway.  Good catch :)

Donnie, this is broken in the 1.1 patch as well, which probably means it's broken in git upstream.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-01 12:43:10 UTC
I've also committed your fix upstream.
Comment 3 Lee 2007-01-24 21:26:19 UTC
Created attachment 108057 [details]
dev-perl:XML-Parser-2.34:20070124-212406.log