From: Andres Mejia Date: Tue, 22 Jan 2013 04:32:49 +0000 (-0500) Subject: Fix check for compression method in rar seek method. X-Git-Tag: v3.1.2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d032315b1279d83699e7722b92dc97ca9be0e9c;p=thirdparty%2Flibarchive.git Fix check for compression method in rar seek method. --- diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c index 2f4020e89..7492a50ba 100644 --- a/libarchive/archive_read_support_format_rar.c +++ b/libarchive/archive_read_support_format_rar.c @@ -1019,7 +1019,7 @@ archive_read_format_rar_seek_data(struct archive_read *a, int64_t offset, unsigned int i; struct rar *rar = (struct rar *)(a->format->data); - if (rar->compression_method & COMPRESS_METHOD_STORE) + if (rar->compression_method == COMPRESS_METHOD_STORE) { /* Modify the offset for use with SEEK_SET */ switch (whence)