Просмотр исходного кода

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.

Scott James Remnant лет назад: 22
Родитель
Сommit
11d17d10ff
4 измененных файлов с 10 добавлено и 1 удалено
  1. 6 0
      ChangeLog
  2. 1 0
      THANKS
  3. 2 0
      debian/changelog
  4. 1 1
      lib/mlib.c

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+Mon Mar  8 16:49:13 GMT 2004 Christian Haggstrom <chm@c00.info>
+
+  * 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 <cjwatson@debian.org>
  
   * dselect/methlist.cc, dselect/pkgdisplay.cc: Set the total display width

+ 1 - 0
THANKS

@@ -7,6 +7,7 @@ Bruce Perens <bruce@pixar.com>
 Carl Streeter <streeter@cae.wisc.edu>
 Carlos Laviola <claviola@brfree.com.br>
 Charles Briscoe-Smith <cpbs@debian.org>
+Christian Haggstrom <chm@c00.info>
 Christophe Le Bars <clebars@teaser.fr>
 Colin Plumb <colin@nyx.net>
 Colin Watson <cjw44@flatline.org.uk>

+ 2 - 0
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 <scott@netsplit.com>  UNRELEASED
 

+ 1 - 1
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;