From 0e0639b7020d5b6c58947393232c5445631767bd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 14 Jun 2007 09:29:48 +0000 Subject: Alex Landau writes: open firmware for reading, not writing --- util-linux/mdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-linux/mdev.c b/util-linux/mdev.c index fca4fd0..8743cdb 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -241,7 +241,7 @@ static inline void load_firmware(const char * const firmware, const char * const /* check for /lib/firmware/$FIRMWARE */ xchdir("/lib/firmware"); - firmware_fd = xopen(firmware, O_WRONLY); + firmware_fd = xopen(firmware, O_RDONLY); /* in case we goto out ... */ data_fd = -1; -- cgit v1.1