From 6d032315b1279d83699e7722b92dc97ca9be0e9c Mon Sep 17 00:00:00 2001 From: Andres Mejia Date: Mon, 21 Jan 2013 23:32:49 -0500 Subject: [PATCH] Fix check for compression method in rar seek method. --- libarchive/archive_read_support_format_rar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2