SOURCES: xorg-driver-video-xgi-open.patch (NEW) - fix open() flags

qboosh qboosh at pld-linux.org
Sat Dec 27 10:55:44 CET 2008


Author: qboosh                       Date: Sat Dec 27 09:55:44 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix open() flags

---- Files affected:
SOURCES:
   xorg-driver-video-xgi-open.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/xorg-driver-video-xgi-open.patch
diff -u /dev/null SOURCES/xorg-driver-video-xgi-open.patch:1.1
--- /dev/null	Sat Dec 27 10:55:45 2008
+++ SOURCES/xorg-driver-video-xgi-open.patch	Sat Dec 27 10:55:39 2008
@@ -0,0 +1,11 @@
+--- xf86-video-xgi-1.5.0/src/xgi_driver.c.orig	2007-08-28 00:56:34.000000000 +0200
++++ xf86-video-xgi-1.5.0/src/xgi_driver.c	2008-12-27 10:49:05.489307405 +0100
+@@ -2504,7 +2504,7 @@
+ 
+     FbDevExist = FALSE;
+     if (pXGI->Chipset != PCI_CHIP_XGIXG20) {
+-        if ((fd = open("/dev/fb", 'r')) != -1) {
++        if ((fd = open("/dev/fb", O_RDONLY)) != -1) {
+             PDEBUG(ErrorF("--- open /dev/fb....   \n"));
+             ioctl(fd, FBIOGET_FSCREENINFO, &fix);
+             if (fix.accel == FB_ACCEL_XGI_GLAMOUR) {
================================================================


More information about the pld-cvs-commit mailing list