Skip to content

[Xenial] Fix the removal of symlinked directories

Ratchanan Srirattanamet requested to merge cherry-pick-0120baca into ubports/xenial

Before rmtree recursed into symlinked directories and removed their contents as well with catastrophic consequences in case symlinks pointed outside the click root directory. Check for a symlink and unlink it instead of recursing into it.

Fixes: https://ubports.atlassian.net/browse/YUMI-23

(cherry picked from commit 0120baca)

Edited by Ratchanan Srirattanamet

Merge request reports