diff options
author | Guillem Jover <guillem@debian.org> | 2007-02-12 23:36:33 +0000 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2007-02-12 23:36:33 +0000 |
commit | 1ec6f5937809001a28fea8e7c702b7f831be3160 (patch) | |
tree | 0783da24a880e9256782c1bc09fc4910ed3dba34 /lib | |
parent | 9842af3466cb545494f86051c2eb6adfd71b1ceb (diff) | |
download | dpkg-1ec6f5937809001a28fea8e7c702b7f831be3160.tar.gz |
Check proper error value returned by BZ2_bzerror. Closes: #410605
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compression.c b/lib/compression.c index 7b305e357..cdafa3620 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); } |