Commit bcf40bfa authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

mount: remove an extra condition from mounts_equal()

Two mounts can be equal even it they are mounted in
directories with different names.
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 0b368c44
...@@ -329,8 +329,6 @@ static bool mounts_equal(struct mount_info *a, struct mount_info *b) ...@@ -329,8 +329,6 @@ static bool mounts_equal(struct mount_info *a, struct mount_info *b)
return false; return false;
if (strcmp(a->root, b->root)) if (strcmp(a->root, b->root))
return false; return false;
if (strcmp(basename(a->mountpoint), basename(b->mountpoint)))
return false;
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment