Package: swish++ Version: 6.1.5-2.1 Severity: minor Tags: patch Running /usr/bin/httpindex reveals that it hardcodes a call to /usr/bin/index (rather than the packaged /usr/bin/index++):
$ wget -rxnv http://localhost/example.html 2>&1 | httpindex -d open2: exec of /usr/bin/index -v4 - failed at /usr/bin/httpindex line 52 (I also notice that the example in httpindex(1) uses long-gone wget options.) Editing the call on line 52, or adding a symlink from /usr/bin/index to /usr/bin/index++, is enough to fix it. My patch is just an ugly hack that does the former. I'm calling it "Severity: minor" because it looks like nobody ever uses httpindex; certainly dwww doesn't, and I only hit on it by accident. So you might alternatively want to retire it completely. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (50, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages swish++ depends on: ii libc6 2.13-27 ii libstdc++6 4.6.3-1 ii perl [perl5] 5.14.2-7 ii zlib1g 1:1.2.6.dfsg-2 swish++ recommends no packages. Versions of packages swish++ suggests: ii antiword 0.37-8 ii poppler-utils [xpdf-utils] 0.16.7-3 -- no debconf information -- JBR Ankh kak! (Ancient Egyptian blessing)
diff -ru swish++-6.1.5.pristine/scripts/httpindex.in swish++-6.1.5/scripts/httpindex.in --- swish++-6.1.5.pristine/scripts/httpindex.in 2004-03-27 19:09:53.000000000 +0000 +++ swish++-6.1.5/scripts/httpindex.in 2012-03-12 17:44:38.067392391 +0000 @@ -49,7 +49,7 @@ push( @index_opts, "-$_$v" ) if $v; } -open2( \*INDEX_STDOUT, \*INDEX_STDIN, "%%I_BIN%%/index @index_opts -v4 -" ); +open2( \*INDEX_STDOUT, \*INDEX_STDIN, "%%I_BIN%%/index++ @index_opts -v4 -" ); while ( <> ) { next unless /-> "([^"]+)"/; my $path = $1;