From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 139ded1e for ; Sat, 9 Jul 2016 16:13:31 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1bLzZ2-00086q-6w; Sat, 09 Jul 2016 23:13:30 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1bLzYz-0006eF-Ma; Sat, 09 Jul 2016 23:13:25 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1bLzYz-0001WQ-Hb; Sat, 09 Jul 2016 23:13:25 +0200 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 6d83d4eb; Sat, 9 Jul 2016 23:13:25 +0200 (CEST) Date: Sat, 9 Jul 2016 23:13:25 +0200 From: Ingo Schwarze To: Svyatoslav Mishyn Cc: tech@mdocml.bsd.lv Subject: Re: call for testing: mandoc-1.13.4 release candidate Message-ID: <20160709211325.GF6629@athene.usta.de> References: <20160709131158.GA6629@athene.usta.de> <20160709182135.GA14846@k8> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160709182135.GA14846@k8> User-Agent: Mutt/1.6.2 (2016-07-01) Hi Svyatoslav, Svyatoslav Mishyn Crux wrote on Sat, Jul 09, 2016 at 09:21:39PM +0300: > (Sat, 09 Jul 15:11) Ingo Schwarze: >> * man.cgi(8): Support short URIs like http://man.openbsd.org/mdoc . > But why doesn't the link http://man.openbsd.org/mandoc work? Thanks for reminding me, fix committed and installed, see below. Ingo Log Message: ----------- Do not treat PATH_INFO as a complete path if it doesn't contain a manpath. For example, this makes http://man.openbsd.org/mandoc work as expected. Bug reported by tb@, reminded by Svyatoslav Mishyn. Modified Files: -------------- mdocml: cgi.c Revision Data ------------- Index: cgi.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/cgi.c,v retrieving revision 1.132 retrieving revision 1.133 diff -Lcgi.c -Lcgi.c -u -p -r1.132 -r1.133 --- cgi.c +++ cgi.c @@ -1026,7 +1026,7 @@ main(void) if (*path != '\0') { parse_path_info(&req, path); - if (access(path, F_OK) == -1) + if (req.q.manpath == NULL || access(path, F_OK) == -1) path = ""; } else if ((querystring = getenv("QUERY_STRING")) != NULL) parse_query_string(&req, querystring); -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv