[BusyBox] httpd cgi execute patch for cvs

Vladimir N. Oleynik dzo at simtreas.ru
Fri Feb 6 07:34:15 UTC 2004


Peter,

> hey all, i've updated my old busybox 1.00-pre5 patch to current CVS. to
> recap, it's a compile-time option for the httpd applet that makes any
> executable file run as a CGI script. this is similar to a feature in thttpd
> that uses a regex to match files to execute; perhaps a similar feature would
> be useful for busybox's httpd but for now this has the same effect as
> matching all executable files.
> 
> if it needs cleaning up i'm all ears. patch should be following it some time
> to allow for a specific default page instead of just index.html (when
> combined with this page it will allow for an index.cgi script).

Also next your problem: access(path, X_OK) is true for directory listing mode.
Result: your patch call sendCGI(), but must try directory listing first.


--w
vodz





More information about the busybox mailing list