Skip to content

Commit 96b7a77

Browse files
committed
Decode mountpoint while reading /proc/self/mountinfo
1 parent 2d1f9e0 commit 96b7a77

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

benchexec/container.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,15 +802,17 @@ def setup_fuse_overlay_upperdir(upperdir):
802802
if len(fields) < 5:
803803
continue
804804
device_id, mountpoint = fields[2], fields[4]
805-
device_id_to_mounts.setdefault(device_id, []).append(mountpoint)
805+
device_id_to_mounts.setdefault(device_id, []).append(
806+
_decode_path(mountpoint)
807+
)
806808

807809
for device_id, mounts in device_id_to_mounts.items():
808810
# Skip single mounts
809811
if len(mounts) <= 1:
810812
continue
811813
# Make `upperdir/target` directory
812814
for target in mounts:
813-
if not os.path.isdir(_decode_path(target)):
815+
if not os.path.isdir(target):
814816
continue
815817
target_in_upperdir = upperdir + target
816818
os.makedirs(target_in_upperdir, exist_ok=True)

0 commit comments

Comments
 (0)