diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-06-14 09:29:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-06-14 09:29:48 +0000 |
commit | 0e0639b7020d5b6c58947393232c5445631767bd (patch) | |
tree | 8acbee2e95aa672e6b0469cabbcaae29d7b32318 /util-linux/mdev.c | |
parent | d8540f71ac8d17ef461e2d52b3f63bd78b3c2c7e (diff) | |
download | busybox-w32-0e0639b7020d5b6c58947393232c5445631767bd.tar.gz busybox-w32-0e0639b7020d5b6c58947393232c5445631767bd.tar.bz2 busybox-w32-0e0639b7020d5b6c58947393232c5445631767bd.zip |
Alex Landau writes: open firmware for reading, not writing
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index fca4fd052..8743cdb6b 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 | |||
241 | 241 | ||
242 | /* check for /lib/firmware/$FIRMWARE */ | 242 | /* check for /lib/firmware/$FIRMWARE */ |
243 | xchdir("/lib/firmware"); | 243 | xchdir("/lib/firmware"); |
244 | firmware_fd = xopen(firmware, O_WRONLY); | 244 | firmware_fd = xopen(firmware, O_RDONLY); |
245 | 245 | ||
246 | /* in case we goto out ... */ | 246 | /* in case we goto out ... */ |
247 | data_fd = -1; | 247 | data_fd = -1; |