Daniel Schepler wrote:
Package: dhelp
Severity: serious
Version: 0.5.21
As the subject says, if I rebuild dhelp using an up-to-date sid
system, then try to install the resulting package (even in a clean
pbuilder chroot), I get a segmentation fault:
Unpacking dhelp (from .../d/dhelp/dhelp_0.5.21_i386.deb) ...
Setting up dhelp (0.5.21) ...
Building HTML tree .../var/lib/dpkg/info/dhelp.postinst: line 45: 15325
Segmentation fault /usr/sbin/dhelp_parse -r
dpkg: error processing dhelp (--configure):
subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
dhelp
E: Sub-process /usr/bin/dpkg returned an error code (1)
The attached patch fixes the problem for me. Please confirm that.
Bye
Racke
Index: dhelp_parse.c
===================================================================
RCS file: /home/cvs/dhelp/dhelp_parse.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- dhelp_parse.c 31 Mar 2005 18:27:24 -0000 1.25
+++ dhelp_parse.c 19 Aug 2005 15:32:46 -0000 1.26
@@ -2,7 +2,7 @@
*** dhelp ***
*** Debian online help system ***
********************************************************************
- *** Copyright (c) 2001-02 by Stefan Hornburg (Racke) <[EMAIL PROTECTED]>
+ *** Copyright (c) 2001-02,2005 by Stefan Hornburg (Racke) <[EMAIL
PROTECTED]>
*** Copyright (c) 1997-99 by Marco Budde ([EMAIL PROTECTED]) ***
*** GNU GPL license ***
******************************************************************** */
@@ -327,7 +327,7 @@
clearerr (out);
path_index_cwd (cwd);
- db_title_read (tdb, cwd, zw2, sizeof (zw));
+ db_title_read (tdb, cwd, zw2, sizeof (zw2));
/*
if (strlen(zw2) == 0)