Skip to content

Commit 309cd22

Browse files
committed
Added CPIO archive support #883
1 parent 0e708f4 commit 309cd22

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plaso/engine/worker.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,12 @@ def _ProcessArchiveTypes(self, mediator, path_spec, type_indicators):
494494
'archive file: {1:s}').format(type_indicators, display_name))
495495

496496
for type_indicator in type_indicators:
497-
if type_indicator == dfvfs_definitions.TYPE_INDICATOR_TAR:
497+
if type_indicator == dfvfs_definitions.TYPE_INDICATOR_CPIO:
498+
archive_path_spec = path_spec_factory.Factory.NewPathSpec(
499+
dfvfs_definitions.TYPE_INDICATOR_CPIO, location='/',
500+
parent=path_spec)
501+
502+
elif type_indicator == dfvfs_definitions.TYPE_INDICATOR_TAR:
498503
archive_path_spec = path_spec_factory.Factory.NewPathSpec(
499504
dfvfs_definitions.TYPE_INDICATOR_TAR, location='/',
500505
parent=path_spec)

0 commit comments

Comments
 (0)