1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 05:19:40 +02:00
This commit is contained in:
didier 2025-04-18 12:07:52 +02:00
parent 55682875a1
commit ce8374b46c

View file

@ -511,7 +511,7 @@ def mount_device():
try:
subprocess.run(
["sudo",
"mount", "-o", "uid=1000,gid=1000,dmask=0000,fmask=0000",
"mount", "-o", "uid=1000,gid=1000,dmask=0000,fmask=0000",
device.device_node, "/media/box"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
@ -597,6 +597,7 @@ def scan():
global mount_point, infected_files, file_count, f_used
# get device size
logging.info(f'start scan')
try:
statvfs = os.statvfs(mount_point)
except Exception as ex: