Fixed ip/httpd/webls to use webroot as defined in httpd.c (i.e., with httpd -w), instead of the hardcoded default. This is also more in line with manual page descriptions. NOTE: this is also a fix to the webls-root patch that I previously submitted -- it was missing changes to file httpd.c; please refer to this instead Reference: /n/sources/patch/applied/webls-root-fixed Date: Mon Jul 27 02:23:56 CES 2009 Signed-off-by: akumar@mail.nanosouffle.net --- /sys/src/cmd/ip/httpd/httpsrv.h Sat Jul 11 22:30:18 2009 +++ /sys/src/cmd/ip/httpd/httpsrv.h Sat Jul 11 22:30:15 2009 @@ -75,3 +75,5 @@ /* authorize.c */ int authorize(HConnect*, char*); + +char *webroot; --- /sys/src/cmd/ip/httpd/httpd.c Sat Jul 11 22:30:23 2009 +++ /sys/src/cmd/ip/httpd/httpd.c Sat Jul 11 22:30:20 2009 @@ -15,7 +15,6 @@ }; char *netdir; -char *webroot; char *HTTPLOG = "httpd/log"; static char netdirb[256]; --- /sys/src/cmd/ip/httpd/webls.c Sat Jul 11 22:30:27 2009 +++ /sys/src/cmd/ip/httpd/webls.c Sat Jul 11 22:30:24 2009 @@ -323,7 +323,7 @@ exits("failed"); } - bind("/usr/web", "/", MREPL); + bind(webroot, "/", MREPL); if(connect->req.search != nil) dosearch(connect->req.search);