Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jun 2005 22:32:53 -0400
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        Morten Johansen <morten@oslonett.no>, freebsd-current@FreeBSD.org
Subject:   Re: [patch] panic executing shell-script
Message-ID:  <p06210219beda88992ee6@[128.113.24.47]>
In-Reply-To: <42B46171.2070606@oslonett.no>
References:  <42B46171.2070606@oslonett.no>

next in thread | previous in thread | raw e-mail | index | archive | help
At 8:01 PM +0200 6/18/05, Morten Johansen wrote:
>Hi -current,
>
>When executing a shell-script where interpreter-name has 2 or
>more trailing whitespace, kernel panics.
>E.g. bin/jetty.sh from port www/jetty.
>
>Fix:
>
>--- imgact_shell.c      Thu Jun  9 02:27:02 2005
>+++ imgact_shell.c.mj   Sat Jun 18 19:33:00 2005
>@@ -161,7 +161,7 @@ exec_shell_imgact(imgp)
>        while (ihp < maxp && ((*ihp != '\n') && (*ihp != '\0')))
>                ihp++;
>        opte = ihp;
>-       while (--ihp > interpe && ((*ihp == ' ') || (*ihp == '\t')))
>+       while (--ihp > optb && ((*ihp == ' ') || (*ihp == '\t')))
>                opte = ihp;

A slightly longer fix has been committed for this bug.
Sorry about that!

-- 
Garance Alistair Drosehn     =      gad@gilead.netel.rpi.edu
Senior Systems Programmer               or   gad@FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06210219beda88992ee6>