[BusyBox] bug in busybox-0.49 sed
Mark Whitley
markw at lineo.com
Wed Mar 14 21:14:09 UTC 2001
On Wed, Mar 14, 2001 at 12:47:34PM -0800, HABBINGA,ERIK (HP-Loveland,ex1) wrote:
> Hi,
> I was having a problem with the sed in busybox not handling regular
> expression style addressing. A sed command like:
>
> ./sed -e "/\/ /s/dev\/sda./dev\/${DEVICE}/" fstab
>
> would fail with:
>
> sed: unterminated match expression
>
> It turns out that sed_cmd->delimiter never gets initialized before
> get_address gets called. It only gets initialized in parse_subst_cmd, which
> gets called after get_address in parse_cmd_str. The following patch fixes
> the problem for me.
Applied, tested, works, committed. Thanks for the patch, Erik.
Mark Whitley
markw at lineo.com
More information about the busybox
mailing list