PageRenderTime 34ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/x11/xserver/xorg-server/patches/xorg-server-1.11.2-21_x11_nonroot-vesa.patch

http://github.com/OpenELEC/OpenELEC.tv
Patch | 12 lines | 12 code | 0 blank | 0 comment | 0 complexity | a5bf7e3b7cfa6f8a7a1fada688c715ed MD5 | raw file
 1--- xorg-server-1.6.1.901/hw/xfree86/common/xf86AutoConfig.c~	2009-07-03 11:59:30.000000000 -0700
 2+++ xorg-server-1.6.1.901/hw/xfree86/common/xf86AutoConfig.c	2009-07-03 11:59:30.000000000 -0700
 3@@ -516,7 +516,8 @@
 4     /* Fallback to platform default hardware */
 5     if (i < (nmatches - 1)) {
 6 #if defined(__i386__) || defined(__amd64__) || defined(__hurd__)
 7-	matches[i++] = xnfstrdup("vesa");
 8+	if (geteuid() == 0)
 9+		matches[i++] = xnfstrdup("vesa");
10 #elif defined(__sparc__) && !defined(sun)
11 	matches[i++] = xnfstrdup("sunffb");
12 #endif