Fix log message for encryption only. - 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 658dc1eaab551a31d128ebfa46142eec53f18487 DIR parent 1a1911226d27e2072fe9090035c008e5e4ebce49 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 2 Apr 2022 23:27:14 +0200 Fix log message for encryption only. Diffstat: M main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/main.c b/main.c @@ -279,8 +279,10 @@ handlerequest(int sock, char *req, int rlen, char *base, char *ohost, if (stat(path, &dir) != -1) { if ((dir.st_mode & S_ISVTX) && !istls) { dprintf(sock, tlserr, recvc); - if (loglvl & ERRORS) - logentry(clienth, clientp, recvc, "not found"); + if (loglvl & ERRORS) { + logentry(clienth, clientp, recvc, + "encryption only"); + } return; }