aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/packages/rpm/sle11/SOURCES/xorg-x11-nonroot-vesa.patch
blob: 6bd3c7eee00b59667be2aee077f3b14c2a1ba34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: xorg-server-1.6.3.901/hw/xfree86/common/xf86AutoConfig.c
================================================================================
--- xorg-server-1.7.99/hw/xfree86/common/xf86AutoConfig.c
+++ xorg-server-1.7.99/hw/xfree86/common/xf86AutoConfig.c
@@ -535,7 +535,8 @@
 #if !defined(__linux__) && defined(__sparc__)
 	matches[i++] = xnfstrdup("wsfb");
 #else
-	matches[i++] = xnfstrdup("vesa");
+	if (geteuid() == 0)
+	    matches[i++] = xnfstrdup("vesa");
 #endif
     }
 }