From: Mike Frysinger Date: Thu, 14 Jun 2007 09:29:48 +0000 (-0000) Subject: Alex Landau writes: open firmware for reading, not writing X-Git-Tag: 1_7_0~234 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0e0639b7020d5b6c58947393232c5445631767bd;p=oweals%2Fbusybox.git Alex Landau writes: open firmware for reading, not writing --- 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 /* 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;