Merge pull request #300 from andefined/fix-idstatuscache-error

Fixed missing root_paths check for ios/idstatuscache module
This commit is contained in:
Nex 2022-09-07 09:29:09 +02:00 committed by GitHub
commit d4e99661c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,15 +169,16 @@ class IOSExtraction(MVTModule):
file_path = self._get_backup_file_from_id(backup_id) file_path = self._get_backup_file_from_id(backup_id)
if file_path: if file_path:
break break
# If this file does not exist we might be processing a full if root_paths:
# filesystem dump (checkra1n all the things!). # If this file does not exist we might be processing a full
if not file_path or not os.path.exists(file_path): # filesystem dump (checkra1n all the things!).
# We reset the file_path. if not file_path or not os.path.exists(file_path):
file_path = None # We reset the file_path.
for found_path in self._get_fs_files_from_patterns(root_paths): file_path = None
file_path = found_path for found_path in self._get_fs_files_from_patterns(root_paths):
break file_path = found_path
break
# If we do not find any, we fail. # If we do not find any, we fail.
if file_path: if file_path: