| Making the textfiles RFC conformant. - geomyidae - A small C-based gopherd. | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit 63de51aa52c69c57370c77d51ab9fc84196b7073 | |
| parent 5515917b4123b50a3ecce3dc22b85c16908014b9 | |
| Author: Christoph Lohmann <[email protected]> | |
| Date: Sun, 13 Nov 2011 21:55:07 +0100 | |
| Making the textfiles RFC conformant. | |
| Diffstat: | |
| M handlr.c | 6 +++--- | |
| M main.c | 2 +- | |
| 2 files changed, 4 insertions(+), 4 deletions(-) | |
| --- | |
| diff --git a/handlr.c b/handlr.c | |
| @@ -70,7 +70,7 @@ handledir(int sock, char *path, char *port, char *base, char … | |
| } | |
| free(dirent); | |
| } | |
| - tprintf(sock, "\r\n"); | |
| + tprintf(sock, ".\r\n"); | |
| } | |
| free(pa); | |
| @@ -94,7 +94,7 @@ handlegph(int sock, char *file, char *port, char *base, char … | |
| freeelem(act->n[i]); | |
| act->n[i] = nil; | |
| } | |
| - tprintf(sock, "\r\n.\r\n\r\n"); | |
| + tprintf(sock, ".\r\n"); | |
| freeindex(act); | |
| } | |
| @@ -223,7 +223,7 @@ handledcgi(int sock, char *file, char *port, char *base, ch… | |
| printelem(sock, el, ohost, port); | |
| freeelem(el); | |
| } | |
| - tprintf(sock, "\r\n.\r\n\r\n"); | |
| + tprintf(sock, ".\r\n"); | |
| wait(NULL); | |
| if (path != nil) | |
| diff --git a/main.c b/main.c | |
| @@ -191,7 +191,7 @@ handlerequest(int sock, char *base, char *ohost, char *port… | |
| return; | |
| } | |
| - tprintf(sock, err, recvc); | |
| + tprintf(sock, err, recvc); | |
| if(loglvl & ERRORS) | |
| logentry(clienth, clientp, recvc, "not found"); | |
| } |