diff --git a/contrib/webfs b/contrib/webfs new file mode 100755 index 0000000..9678e09 --- /dev/null +++ b/contrib/webfs @@ -0,0 +1,14 @@ +#! /bin/sh + +PORT=8888 + +if [ $# = 0 ]; then + ARGS=-d +fi + +addr=$(ifconfig | awk -F '[: ]+' '/inet addr/ {print $4;}' \ + | grep -Fv 127.0.0.1 | head -n 1) + +echo Listening on http://$addr:$PORT/ + +tcpsvd 0 $PORT eris -. $ARGS "$@" diff --git a/eris.c b/eris.c index 3c77310..d5cd6e0 100644 --- a/eris.c +++ b/eris.c @@ -616,7 +616,7 @@ serve_idx(int fd, char *path) html_esc(stdout, path); printf("
"); + printf("\n"); if (path[1]) { printf("Parent Directory\n"); } @@ -661,7 +661,9 @@ serve_idx(int fd, char *path) url_esc(stdout, name); printf("\n"); } - printf("