mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1239 from tofbouf/patch-1
Apply realpath to find mounted points to unmount
This commit is contained in:
commit
8e19eabe16
1 changed files with 1 additions and 1 deletions
|
@ -2658,7 +2658,7 @@ def _recursive_umount(directory):
|
|||
points_to_umount = [
|
||||
line.split(" ")[2]
|
||||
for line in mount_lines
|
||||
if len(line) >= 3 and line.split(" ")[2].startswith(directory)
|
||||
if len(line) >= 3 and line.split(" ")[2].startswith(os.path.realpath(directory))
|
||||
]
|
||||
|
||||
everything_went_fine = True
|
||||
|
|
Loading…
Add table
Reference in a new issue