From 8ba6b02ecfa5b03bbf2807e8262bb1253a026493 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Fri, 1 May 2009 15:04:19 -0700 Subject: [PATCH] Don't try to write boot_vga since that fails with EACCES --- src/linux_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c index 5afa7d2..1ae9e52 100644 --- a/src/linux_sysfs.c +++ b/src/linux_sysfs.c @@ -716,7 +716,7 @@ static int pci_device_linux_sysfs_boot_vga(struct pci_device *dev) dev->dev, dev->func ); - fd = open( name, O_RDWR ); + fd = open( name, O_RDONLY ); if (fd == -1) return 0; -- 2.7.4