From: Guillem Jover Date: Mon, 12 Feb 2007 23:36:33 +0000 (+0000) Subject: Check proper error value returned by BZ2_bzerror. Closes: #410605 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec6f5937809001a28fea8e7c702b7f831be3160;p=dpkg Check proper error value returned by BZ2_bzerror. Closes: #410605 --- diff --git a/ChangeLog b/ChangeLog index fc3f127e..1ca73ee9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-13 Guillem Jover + + * lib/compression.c (decompress_cat): Use BZ_IO_ERROR instead of + Z_ERRNO for the error value returned by BZ2_bzerror. + 2007-02-12 Guillem Jover * scripts/dpkg-shlibdeps.pl: Move syserr:s to be or'ed after exec:s. diff --git a/debian/changelog b/debian/changelog index 483d3a7a..87210077 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,7 @@ dpkg (1.14.0) UNRELEASED; urgency=low * Do not use a build-stamp in debian/rules. * Fix confusing bottom status lines in dselect, unifying them by removing the method or package name and capitalizing. Closes: #9085 + * Check proper error value returned by BZ2_bzerror. Closes: #410605 [ Updated dpkg translations ] * Romanian (Eddy Petrișor). diff --git a/lib/compression.c b/lib/compression.c index 7b305e35..cdafa362 100644 --- a/lib/compression.c +++ b/lib/compression.c @@ -69,7 +69,7 @@ void decompress_cat(enum compression_type type, int fd_in, int fd_out, char *des if (actualread < 0 ) { int err = 0; const char *errmsg = BZ2_bzerror(bzfile, &err); - if (err == Z_ERRNO) { + if (err == BZ_IO_ERROR) { if (errno == EINTR) continue; errmsg= strerror(errno); }