From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxDBY-0006GX-QA for barebox@lists.infradead.org; Tue, 26 May 2015 11:38:18 +0000 From: Marc Kleine-Budde Date: Tue, 26 May 2015 13:37:45 +0200 Message-Id: <1432640273-3895-2-git-send-email-mkl@pengutronix.de> In-Reply-To: <1432640273-3895-1-git-send-email-mkl@pengutronix.de> References: <1432640273-3895-1-git-send-email-mkl@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/9] state: mtd_get_meminfo: open path readonly instead of readwrite To: barebox@lists.infradead.org Signed-off-by: Marc Kleine-Budde --- common/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/state.c b/common/state.c index cc0e168a7b99..c13f7a00c98c 100644 --- a/common/state.c +++ b/common/state.c @@ -900,7 +900,7 @@ static int mtd_get_meminfo(const char *path, struct mtd_info_user *meminfo) { int fd, ret; - fd = open(path, O_RDWR); + fd = open(path, O_RDONLY); if (fd < 0) return fd; -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox