Package: man2html
Version: 1.6g-5
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

HTML links to 'SEE ALSO' manpages should follow the format:
/cgi-bin/man/man2html?query=sectionnumber+pagename

However, man2html is generating links in the format:
/cgi-bin/man/man2html?sectionnumber+pagename

The attached patch fixes this bug.

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.39-2-amd64

Debian Release: wheezy/sid
  500 testing         sft.if.usp.br
  500 testing         linorg.usp.br
  500 squeeze-backports mozilla.debian.net
  500 maverick        ppa.launchpad.net
  200 unstable        sft.if.usp.br

--- Package information. ---
Depends            (Version) | Installed
============================-+-===========
libc6               (>= 2.3) | 2.13-4
debconf            (>= 0.5)  | 1.5.39
 OR debconf-2.0              |
man2html-base     (= 1.6g-5) | 1.6g-5
gawk                         | 1:3.1.7.dfsg-5
man-db            (>= 2.4.1) | 2.6.0.2-1
debianutils         (>= 2.1) | 4.0.1
apache2                      |
 OR httpd-cgi                |
 OR lynx-cur                 | 2.8.8dev.8-1


Package's Recommends field is empty.

Suggests         (Version) | Installed
==========================-+-===========
swish++                    | 6.1.5-2
lynx-cur                   | 2.8.8dev.8-1
 OR www-browser            |
--- man-1.6g.orig/man2html/cgibase.c	2005-08-20 20:26:06.000000000 -0300
+++ man-1.6g/man2html/cgibase.c	2011-06-14 16:27:12.000000000 -0300
@@ -114,10 +114,10 @@
 			printf("<A HREF=\"%s%s\">Return to Main Contents</A>",
 			       cgibase, man2htmlpath);
 		else if (!sec)
-			printf("<A HREF=\"%s%s%c%s\">%s</A>",
+			printf("<A HREF=\"%s%s%cquery=%s\">%s</A>",
 			       cgibase, man2htmlpath, sep, h, h);
 		else
-			printf("<A HREF=\"%s%s%c%s+%s\">%s</A>",
+			printf("<A HREF=\"%s%s%cquery=%s+%s\">%s</A>",
 			       cgibase, man2htmlpath, sep, sec, h, h);
 	}
 }

Reply via email to