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 merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SPU78-0005cE-SV for barebox@lists.infradead.org; Wed, 02 May 2012 07:36:43 +0000 Date: Wed, 2 May 2012 09:36:39 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Message-ID: <20120502073639.GY20039@pengutronix.de> References: <1335942766-31064-1-git-send-email-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1335942766-31064-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] hush: bail out of scripts on syntax error To: Sascha Hauer Cc: barebox@lists.infradead.org Hello, On Wed, May 02, 2012 at 09:12:46AM +0200, Sascha Hauer wrote: > On a systax error we have to bail out of the shell instead of > setting inp->p to NULL and crash barebox with a NULL pointer > deref. This only happened in scripts. > = > Signed-off-by: Sascha Hauer This fixes the problem I had (i.e. a boot loop caused by a stray fi in /env/bin/init). Reported-by: Uwe Kleine-K=F6nig Tested-by: Uwe Kleine-K=F6nig Thanks Uwe -- = Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox