Remove comment about non-/ selectors. We are using them now. - geomyidae - A small C-based gopherd.
 (HTM) git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7b9aa6de08d6ed822f5917c44bf61e10a804b31b
 (DIR) parent a291bc8c99309fcbfd1a7688988ba60a2e5bf042
 (HTM) 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:
         M main.c                              |      17 -----------------
       
       1 file changed, 0 insertions(+), 17 deletions(-)
       ---
 (DIR) 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;