iFix double printing notfounderr and fix notfound on not allowed dir trav. - geomyidae - A small C-based gopherd. Err bitreich.org 70 hgit clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ URL:git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ bitreich.org 70 1Log /scm/geomyidae/log.gph bitreich.org 70 1Files /scm/geomyidae/files.gph bitreich.org 70 1Refs /scm/geomyidae/refs.gph bitreich.org 70 1Tags /scm/geomyidae/tag bitreich.org 70 1README /scm/geomyidae/file/README.gph bitreich.org 70 1LICENSE /scm/geomyidae/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 32c1854864ce91a873e607659294eda9012411e6 /scm/geomyidae/commit/32c1854864ce91a873e607659294eda9012411e6.gph bitreich.org 70 1parent e35d04d03d5c4c8ddc88e73c5c3f092e3d309a40 /scm/geomyidae/commit/e35d04d03d5c4c8ddc88e73c5c3f092e3d309a40.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Mon, 21 Aug 2023 11:37:44 +0200 Err bitreich.org 70 i Err bitreich.org 70 iFix double printing notfounderr and fix notfound on not allowed dir trav. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M main.c | 2 ++ Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 0 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/main.c b/main.c /scm/geomyidae/file/main.c.gph bitreich.org 70 i@@ -329,6 +329,7 @@ dothegopher: Err bitreich.org 70 i dprintf(sock, notfounderr, recvc); Err bitreich.org 70 i if (loglvl & ERRORS) Err bitreich.org 70 i logentry(clienth, clientp, recvc, "not found"); Err bitreich.org 70 i+ return; Err bitreich.org 70 i } Err bitreich.org 70 i if (stat(rpath, &dir) != -1) { Err bitreich.org 70 i /* Err bitreich.org 70 i@@ -426,6 +427,7 @@ dothegopher: Err bitreich.org 70 i } Err bitreich.org 70 i } else { Err bitreich.org 70 i if (pathfallthrough && S_ISDIR(dir.st_mode)) { Err bitreich.org 70 i+ dprintf(sock, notfounderr, recvc); Err bitreich.org 70 i if (loglvl & ERRORS) { Err bitreich.org 70 i logentry(clienth, clientp, recvc, Err bitreich.org 70 i "directory listing in traversal not allowed"); Err bitreich.org 70 .