xref: /plan9-contrib/sys/src/cmd/ip/httpd/anonymous.c (revision ec59a3ddbfceee0efe34584c2c9981a5e5ff1ec4)
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