From 309cd22e70587d37b941e50ea1a43131a34399e3 Mon Sep 17 00:00:00 2001 From: Joachim Metz Date: Tue, 29 Dec 2020 20:29:19 +0100 Subject: [PATCH] Added CPIO archive support #883 --- plaso/engine/worker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plaso/engine/worker.py b/plaso/engine/worker.py index 553e415100..f68603e35a 100644 --- a/plaso/engine/worker.py +++ b/plaso/engine/worker.py @@ -494,7 +494,12 @@ def _ProcessArchiveTypes(self, mediator, path_spec, type_indicators): 'archive file: {1:s}').format(type_indicators, display_name)) for type_indicator in type_indicators: - if type_indicator == dfvfs_definitions.TYPE_INDICATOR_TAR: + if type_indicator == dfvfs_definitions.TYPE_INDICATOR_CPIO: + archive_path_spec = path_spec_factory.Factory.NewPathSpec( + dfvfs_definitions.TYPE_INDICATOR_CPIO, location='/', + parent=path_spec) + + elif type_indicator == dfvfs_definitions.TYPE_INDICATOR_TAR: archive_path_spec = path_spec_factory.Factory.NewPathSpec( dfvfs_definitions.TYPE_INDICATOR_TAR, location='/', parent=path_spec)