geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 7b9aa6de08d6ed822f5917c44bf61e10a804b31b
parent a291bc8c99309fcbfd1a7688988ba60a2e5bf042
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 22 Jul 2023 15:32:47 +0200

Remove comment about non-/ selectors. We are using them now.

Diffstat:
Mmain.c | 17-----------------
1 file changed, 0 insertions(+), 17 deletions(-)

diff --git a/main.c b/main.c @@ -224,21 +224,6 @@ handlerequest(int sock, char *req, int rlen, char *base, char *ohost, return; } - /* - * FUTURE: Valid cases in gopher we overwrite here, but could be used - * for other geomyidae features: - * - * request string = "?..." -> "/?..." - * request string = "" -> "/" - * request string = "somestring" -> "/somestring" - * - * Be careful, when you consider those special cases to be used - * for some feature. You can easily do good and bad. - * - * Look at printelem() in ind.c for the counterpart of producing - * selectors. - */ - /* Strip off the arguments of req?args style. */ c = strchr(recvb, '?'); if (c != NULL) { @@ -346,7 +331,6 @@ handlerequest(int sock, char *req, int rlen, char *base, char *ohost, } if (S_ISDIR(dir.st_mode)) { - printf("S_ISDIR\n"); for (i = 0; i < sizeof(indexf)/sizeof(indexf[0]); i++) { len = strlen(rpath); @@ -362,7 +346,6 @@ handlerequest(int sock, char *req, int rlen, char *base, char *ohost, if (rpath[len-1] != '/') strcat(rpath, "/"); strcat(rpath, indexf[i]); - printf("path index = %s\n", rpath); fd = open(rpath, O_RDONLY); if (fd >= 0) break;