change restore order to fix exploit w/ daemons

This commit is contained in:
leminlimez
2024-12-21 22:39:39 -05:00
parent f509c67311
commit ec55bc3116

View File

@@ -83,7 +83,7 @@ def restore_files(files: list, reboot: bool = False, lockdown_client: LockdownCl
# create the files to be backed up
files_list = [
]
sorted_files = sorted(files, key=lambda x: x.restore_path, reverse=True)
sorted_files = sorted(files, key=lambda x: x.restore_path, reverse=False)
# add the file paths
last_domain = ""
last_path = ""