Making the textfiles RFC conformant. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 63de51aa52c69c57370c77d51ab9fc84196b7073 DIR parent 5515917b4123b50a3ecce3dc22b85c16908014b9 HTML Author: Christoph Lohmann <20h@r-36.net> 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(-) --- DIR diff --git a/handlr.c b/handlr.c @@ -70,7 +70,7 @@ handledir(int sock, char *path, char *port, char *base, char *args, } 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 *args, 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, char *args, printelem(sock, el, ohost, port); freeelem(el); } - tprintf(sock, "\r\n.\r\n\r\n"); + tprintf(sock, ".\r\n"); wait(NULL); if (path != nil) DIR diff --git a/main.c b/main.c @@ -191,7 +191,7 @@ handlerequest(int sock, char *base, char *ohost, char *port, char *clienth, return; } - tprintf(sock, err, recvc); + tprintf(sock, err, recvc); if(loglvl & ERRORS) logentry(clienth, clientp, recvc, "not found"); }