From 397cf726fc4fbea211ad9bc6a951a12e389307a5 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Fri, 20 Nov 2020 05:29:19 +0900 Subject: [PATCH] Allow GNUSparse for genesis.bin (#13704) --- 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,