--- mgod.c 2011-11-20 14:16:30.000000000 +0000 +++ mgod.c 2017-01-13 05:20:59.540000005 +0000 @@ -810,7 +810,9 @@ printrellink(sel); } else { /* print selector verbatim */ - if(sel[0] == '/') sel ++; + // Default to Bucktooth-style selectors, e.g. /1/selector by + // commenting out the below line: + //if(sel[0] == '/') sel ++; fputs(sel, stdout); } printf("\t%s\t%d\r\n", serv ? serv : servername, @@ -988,6 +990,12 @@ exit(0); } + /* Bucktooth compatibility: support requests of the form /0/selector in + * addition to mgod's /0selector */ + if (req[0] == '/') { + req++; + } + /* read .gopher.rec in server root if exists */ if(!stat(INFCONFIG, &stbuf)) { FILE *fp = fopen(INFCONFIG, "r");