xref: /plan9/sys/src/cmd/ip/httpd/anonymous.c (revision 58da3067adcdccaaa043d0bfde28ba83b7ced07d)
1 #include <u.h>
2 #include <libc.h>
3 #include "httpd.h"
4 #include "httpsrv.h"
5 
6 void
7 anonymous(HConnect *c)
8 {
9 	if(bind(webroot, "/", MREPL) < 0){
10 		hfail(c, HInternal);
11 		exits(nil);
12 	}
13 	chdir("/");
14 }
15