Changeset 5916
- Timestamp:
- 03/24/10 18:36:59 (3 years ago)
- Location:
- luci2
- Files:
-
- 1 added
- 7 modified
-
cbi2/Makefile (modified) (1 diff)
-
lmo/Makefile (modified) (1 diff)
-
zhttpd/handler/luci2.c (added)
-
zhttpd/Makefile (modified) (2 diffs)
-
zhttpd/request.c (modified) (1 diff)
-
zhttpd/tcp.c (modified) (1 diff)
-
zhttpd/zhttpd.c (modified) (2 diffs)
-
zhttpd/zhttpd.uci (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luci2/cbi2/Makefile
r5915 r5916 16 16 $(AR) rc $@ $^ 17 17 18 libcbi.so: parser.o json.o cbi_element.o cbi_dump.o cbi_core.o cbi_buffer.o cbi_uci.o source.o session.o u_sock.o validate.o uvl.o lang.o widget.o log.o handler.o18 libcbi.so: lucic.o parser.o json.o cbi_element.o cbi_dump.o cbi_core.o cbi_buffer.o cbi_uci.o source.o session.o u_sock.o validate.o uvl.o lang.o widget.o log.o handler.o ../lmo/liblmo.a 19 19 $(CC) -shared -luci -ljson -lcrypt -lubox -o $@ $^ 20 20 -
luci2/lmo/Makefile
r5854 r5916 17 17 18 18 %.o: %.c 19 $(CC) $(CFLAGS) - g -c -o $@ $^19 $(CC) $(CFLAGS) -fPIC -g -c -o $@ $^ -
luci2/zhttpd/Makefile
r5881 r5916 3 3 WFLAGS:=-Wall -Werror -pedantic 4 4 LDFLAGS?= 5 LDFLAGS+= -lubox -luci5 LDFLAGS+= 6 6 TLSCFLAGS:= 7 7 BINARY:=zhttpd … … 20 20 21 21 $(BINARY): *.c handler/*.c 22 $(CC) $(CFLAGS) $(TLSCFLAGS) $(SFLAGS) $(WFLAGS) $(LDFLAGS) -I.. - o $@ $+22 $(CC) $(CFLAGS) $(TLSCFLAGS) $(SFLAGS) $(WFLAGS) $(LDFLAGS) -I.. -I../libubox -I../lmo -lubox -luci -lcbi -o $@ $+ 23 23 24 24 clean: -
luci2/zhttpd/request.c
r5884 r5916 178 178 matchlen = size - 1; 179 179 if (urllen > matchlen) { 180 zhttpd_env_set(&req->env, "PATH_INFO", url + matchlen + 1,181 urllen - matchlen - 1);180 zhttpd_env_set(&req->env, "PATH_INFO", url + matchlen, 181 urllen - matchlen); 182 182 } else { 183 183 zhttpd_env_set(&req->env, "PATH_INFO", "", 1); -
luci2/zhttpd/tcp.c
r5900 r5916 80 80 zhttpd_request_t* req = cookie; 81 81 if (req->ioctx) { 82 SSL_shutdown((SSL*)req->ioctx);83 82 SSL_free((SSL*)req->ioctx); 84 83 req->ioctx = NULL; -
luci2/zhttpd/zhttpd.c
r5900 r5916 188 188 zhttpd_vfs_t *d = NULL; 189 189 for (zhttpd_vfs_t *c = zhttpd.vfs; c; c = d) { 190 c->handler->vfs_context_destroy(c->context); 190 if (c->handler->vfs_context_destroy) { 191 c->handler->vfs_context_destroy(c->context); 192 } 191 193 d = c->next; 192 194 free(c); … … 269 271 mount->patternlen = pointlen; 270 272 mount->handler = handler; 271 mount->context = handler->vfs_context_create(options); 273 274 if (handler->vfs_context_create) { 275 mount->context = handler->vfs_context_create(options); 276 if (!mount->context) { 277 free(mount); 278 return ZHTTPD_EINVAL; 279 } 280 } 281 272 282 mount->next = zhttpd.vfs; 273 274 if (!mount->context) {275 free(mount);276 return ZHTTPD_EINVAL;277 }278 279 283 zhttpd.vfs = mount; 280 284 -
luci2/zhttpd/zhttpd.uci
r5900 r5916 24 24 option physical /tmp 25 25 option handler cgi 26 27 config mount luci2 28 option virtual /luci2 29 option handler luci2 26 30 27 31 config mime mime
