summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhang zhigang <zg84.zhang@samsung.com>2023-10-13 03:20:56 +0000
committerGerrit Code Review <gerrit@review>2023-10-13 03:20:56 +0000
commit09151df51072b5284b724b971596908b9ac2800b (patch)
tree0e4476915d6f2b2467a8ea7f1ebff984e364f015
parent2f0f06b45ccdfd5409cd13ecabfa262e14847b7e (diff)
parent05d2a4cf2edb944316a62b284695b99c8b32fe1b (diff)
downloadrpm-09151df51072b5284b724b971596908b9ac2800b.tar.gz
rpm-09151df51072b5284b724b971596908b9ac2800b.tar.bz2
rpm-09151df51072b5284b724b971596908b9ac2800b.zip
Merge "fix zstd magic" into tizen_base
-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') &&