================================
xf86dga:source=1.0.1-1
cvc rdiff xf86dga -1 /[EMAIL PROTECTED]:1-devel/1.0.1-1
================================
1.0.1-1 Ken VanDine ([EMAIL PROTECTED]) Sun Jul 30 22:43:03 2006
    Merged from fl:devel
    
xf86dga.recipe: new
--- /dev/null
+++ xf86dga.recipe
@@ -0,0 +21 @@
+#
+# Copyright (c) 2005-2006 rPath, Inc.
+# This file is distributed under the terms of the MIT License.
+# A copy is available at http://www.rpath.com/permanent/mit-license.html
+#
+
+loadSuperClass('xorgpackage.recipe')
+class Xf86dga(XorgPackageRecipe):
+    name = 'xf86dga'
+    version = '1.0.1'
+    component = 'app'
+
+    buildRequires = [ 'libICE:devel', 'libSM:devel', 'libXaw:devel',
+        'libXext:devel', 'libXmu:devel', 'libXpm:devel', 'libXt:devel',
+        'libXxf86dga:devel' ]
+
+    def unpack(r):
+        XorgPackageRecipe.unpack(r)
+
+        # Security patch for setuid issue
+        
r.addPatch('http://xorg.freedesktop.org/releases/X11R7.1/patches/xf86dga-1.0.1-setuid.diff')

xf86dga-1.0.1-setuid.diff: new
--- /dev/null
+++ xf86dga-1.0.1-setuid.diff
@@ -0,0 +27 @@
+Index: dga.c
+===================================================================
+RCS file: /cvs/xorg/app/xf86dga/dga.c,v
+retrieving revision 1.2
+diff -u -r1.2 dga.c
+--- dga.c      23 Apr 2004 19:54:47 -0000      1.2
++++ dga.c      19 Jun 2006 21:31:33 -0000
+@@ -16,6 +16,7 @@
+ #include <X11/Xmd.h>
+ #include <X11/extensions/xf86dga.h>
+ #include <ctype.h>
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <signal.h>
+@@ -141,7 +142,10 @@
+ 
+ #ifndef __UNIXOS2__
+    /* Give up root privs */
+-   setuid(getuid());
++   if (setuid(getuid()) == -1) {
++      fprintf(stderr, "Unable to change uid: %s\n", strerror(errno));
++      exit(2);
++   }
+ #endif
+ 
+    XF86DGASetViewPort(dis, DefaultScreen(dis), 0, 0);

xf86dga-1.0.1.tar.bz2: new

Committed by: krv
_______________________________________________
Desktop-commits mailing list
[email protected]
http://lists.bizrace.com/mailman/listinfo/desktop-commits

Reply via email to