anonymous.c 195 B

1234567891011121314
  1. #include <u.h>
  2. #include <libc.h>
  3. #include "httpd.h"
  4. #include "httpsrv.h"
  5. void
  6. anonymous(HConnect *c)
  7. {
  8. if(bind(webroot, "/", MREPL) < 0){
  9. hfail(c, HInternal);
  10. exits(nil);
  11. }
  12. chdir("/");
  13. }