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