From: Scott James Remnant Date: Mon, 8 Mar 2004 17:42:57 +0000 (+0000) Subject: Apply patch from Christian Haggstrom to fix #213038, #217286, X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d17d10ffb92e52eb2f57332db7c05a1b6e2139;p=dpkg Apply patch from Christian Haggstrom to fix #213038, #217286, #213543 and #213846; there was an extra %s in the error message printed when out of disk space, causing a strange SEGV. --- diff --git a/ChangeLog b/ChangeLog index 93e4c41b..8020ff76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Mar 8 16:49:13 GMT 2004 Christian Haggstrom + + * lib/mlib.c: Remove extraneous %s in ohshite() call when out of + disk space so that condition gets handled correctly and not with + a SEGV. + Mon Mar 8 10:14:27 GMT 2004 Colin Watson * dselect/methlist.cc, dselect/pkgdisplay.cc: Set the total display width diff --git a/THANKS b/THANKS index 3904b23f..ad371e7d 100644 --- a/THANKS +++ b/THANKS @@ -7,6 +7,7 @@ Bruce Perens Carl Streeter Carlos Laviola Charles Briscoe-Smith +Christian Haggstrom Christophe Le Bars Colin Plumb Colin Watson diff --git a/debian/changelog b/debian/changelog index ab922628..47d7001c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ dpkg (1.10.19) unstable; urgency=low Closes: #217943, #235266. * Force NULL-termination of all tar file entry names. Closes: #232025. * Allow dselect to use the full window width. Closes: #139781. + * Pass correct number of arguments for format string when out of disk + space. Closes: #213038, #217286, #213543, #213846. -- Scott James Remnant UNRELEASED diff --git a/lib/mlib.c b/lib/mlib.c index 3a0d73d0..d8d0be00 100644 --- a/lib/mlib.c +++ b/lib/mlib.c @@ -196,7 +196,7 @@ off_t buffer_write(buffer_data_t data, void *buf, off_t length, const char *desc break; case BUFFER_WRITE_FD: if((ret= write(data->data.i, buf, length)) < 0 && errno != EINTR) - ohshite(_("failed in buffer_write(fd) (%i, ret=%li %s): %s"), data->data.i, (long)ret, desc); + ohshite(_("failed in buffer_write(fd) (%i, ret=%li): %s"), data->data.i, (long)ret, desc); break; case BUFFER_WRITE_NULL: break;