mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
change restore order to fix exploit w/ daemons
This commit is contained in:
@@ -83,7 +83,7 @@ def restore_files(files: list, reboot: bool = False, lockdown_client: LockdownCl
|
|||||||
# create the files to be backed up
|
# create the files to be backed up
|
||||||
files_list = [
|
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
|
# add the file paths
|
||||||
last_domain = ""
|
last_domain = ""
|
||||||
last_path = ""
|
last_path = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user