From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ns.lynxeye.de ([87.118.118.114] helo=lynxeye.de) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WBh6p-0007nw-B0 for barebox@lists.infradead.org; Fri, 07 Feb 2014 08:48:28 +0000 Received: from tellur.localdomain (p57B5E0F6.dip0.t-ipconnect.de [87.181.224.246]) by lynxeye.de (Postfix) with ESMTPA id 3617618B4265 for ; Fri, 7 Feb 2014 09:47:33 +0100 (CET) From: Lucas Stach Date: Fri, 7 Feb 2014 09:48:45 +0100 Message-Id: <1391762936-2747-4-git-send-email-dev@lynxeye.de> In-Reply-To: <1391762936-2747-1-git-send-email-dev@lynxeye.de> References: <1391762936-2747-1-git-send-email-dev@lynxeye.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 03/14] common: env: properly propagate error code To: barebox@lists.infradead.org Signed-off-by: Lucas Stach --- common/environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/environment.c b/common/environment.c index ab82103..8b22edf 100644 --- a/common/environment.c +++ b/common/environment.c @@ -245,7 +245,7 @@ int envfs_load(const char *filename, char *dir, unsigned flags) envfd = open(filename, O_RDONLY); if (envfd < 0) { printf("Open %s %s\n", filename, errno_str()); - return -1; + return envfd; } /* read superblock */ -- 1.8.5.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox