From c9d6fde7cf27be21e477b621f10be6b89cb137cb Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2020 21:47:13 +0000 Subject: [PATCH] Allow GNUSparse for genesis.bin (#13704) (#13706) (cherry picked from commit 397cf726fc4fbea211ad9bc6a951a12e389307a5) Co-authored-by: Ryo Onodera --- runtime/src/hardened_unpack.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/hardened_unpack.rs b/runtime/src/hardened_unpack.rs index 69c21e59e5..ecabf20ad0 100644 --- a/runtime/src/hardened_unpack.rs +++ b/runtime/src/hardened_unpack.rs @@ -227,6 +227,7 @@ fn unpack_genesis>( fn is_valid_genesis_archive_entry(parts: &[&str], kind: tar::EntryType) -> bool { trace!("validating: {:?} {:?}", parts, kind); match (parts, kind) { + (["genesis.bin"], GNUSparse) => true, (["genesis.bin"], Regular) => true, (["rocksdb"], Directory) => true, (["rocksdb", ..], GNUSparse) => true,