summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@redhat.com>2019-12-23 16:51:49 +0100
committerŁukasz Stelmach <l.stelmach@samsung.com>2023-03-30 11:26:59 +0200
commit05d2a4cf2edb944316a62b284695b99c8b32fe1b (patch)
tree4ee6015fa3611be3a44aedbe254d3f7c1e888f34
parentcf340dff995f8e590b88cf1f8b8c985aaa5cee96 (diff)
downloadrpm-05d2a4cf2edb944316a62b284695b99c8b32fe1b.tar.gz
rpm-05d2a4cf2edb944316a62b284695b99c8b32fe1b.tar.bz2
rpm-05d2a4cf2edb944316a62b284695b99c8b32fe1b.zip
fix zstd magic
I spot it while adding support for zstd compressed metadata in URPM/urpmi, which was broken by this typo typo introduced in commit 3684424fe297c996bb05bb64631336fa2903df12 Change-Id: Icce1987c217e638f5f3f74b4ec72b8e5e1d92d84 Origin: https://github.com/rpm-software-management/rpm/commit/c464f1ece501346da11ed7582b8d46682363a285 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
-rw-r--r--rpmio/rpmfileutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmfileutil.c b/rpmio/rpmfileutil.c
index 9e47ff8a5..a648a0e74 100644
--- a/rpmio/rpmfileutil.c
+++ b/rpmio/rpmfileutil.c
@@ -351,7 +351,7 @@ int rpmFileIsCompressed(const char * file, rpmCompressedMagic * compressed)
(magic[4] == 0x5a) && (magic[5] == 0x00)) {
/* new style xz (lzma) with magic */
*compressed = COMPRESSED_XZ;
- } else if ((magic[0] == 0x28) && (magic[1] == 0x85) &&
+ } else if ((magic[0] == 0x28) && (magic[1] == 0xB5) &&
(magic[2] == 0x2f) ) {
*compressed = COMPRESSED_ZSTD;
} else if ((magic[0] == 'L') && (magic[1] == 'Z') &&