[BusyBox] httpd applet patches

Vladimir N. Oleynik dzo at simtreas.ru
Wed Jan 8 00:12:05 UTC 2003


Hi Glenn.


I changes your httpd busybox applet. Please look.
Cnahgelog:

  Realizated TODO:
   cache http.conf, reload if HUP signaled
   added -u uid options for drop privilegies
  More integrating for busybox and bb formating
  Added popular mime types for filename extensions
  Corrected daemon() usage
  Check URL as directory and send "HTTP_NOT_FOUND"
      and requiring first '/' always
  Added header Last-Modified: for send file
  Accept filename have cgi-bin as substring, but not if is directory
  Small rewroted sendCgi():
     exec as ./script (removed bug - not set '/'),
     but call addEnvCgi(script) without "./"
     reducing memory usage
     if chdir have errors - don`t start script (removed bug)
     added env REMOTE_ADDR REMOTE_PORT SERVER_PORT
  EncodeString coding nonprintable to %XX for decode current realize
  getLine() using maxBuf now for check overflow

You can remove this comments from header. ;)



--w
vodz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: last_patch77.gz
Type: application/x-gzip
Size: 13382 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20030108/e19d0dca/attachment.bin 


More information about the busybox mailing list