[BusyBox] httpd patches

Glenn Engel at Home glenne at engel.org
Tue Apr 1 22:48:18 UTC 2003


>
> -static const char home[] = "/www";
> +static const char home[] = "./";
>
> Why?

This was mainly for compatibility with the first release so it wouldn't
break when folks upgrade.   If there is a compelling reason for /www then
lets discuss it.

> I found restore old algorithms for addEnvCgi(), base64ToBin[] and many
> others :(

addEnvCgi() I didn't change unless it was formatting.
base64ToBin() was broken for certain combinations of input.  Rather than
debug the new version I put in the old one.  The old one was smaller code
size and many times faster (plus it worked in my regression tests).

>
> You removed my sorting and my not trivial logic from conf_parse :(
>

The sorting is still there and should behave the same as your version.  I
wrote my regression test before I made changes so I could insure it
behaved the same before and after.  To simplify the sorting, I impose a
slight trick - D: rules are converted to d:, a:/A: is converted to A: and
D:* is converted to X:.  This results in a simple search that keys off the
first letter but results in the desired order of ./dAX.  As a result much
of the special checking is not needed so I just insert items into an
ordered list as they are read.

--
Glenn




More information about the busybox mailing list