[BusyBox] bug in busybox-0.49 sed

HABBINGA,ERIK (HP-Loveland,ex1) erik_habbinga at hp.com
Wed Mar 14 20:47:34 UTC 2001


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.

Erik

 <<busybox-0.49-sedfix.diff>> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-0.49-sedfix.diff
Type: application/octet-stream
Size: 517 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20010314/417c1318/attachment.obj 


More information about the busybox mailing list