aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorAndrei Alexeyev <akari@taisei-project.org>2021-07-23 17:18:57 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-07-27 13:11:46 +0300
commit5d88c45861bd5d1f60baa9967fffb843c4a162d1 (patch)
tree424b7334b3de92e7b1549df4cc97d86abe418771 /mesonbuild
parent7eb4c231561dfc5a322814e587b9b89969745367 (diff)
downloadmeson-5d88c45861bd5d1f60baa9967fffb843c4a162d1.zip
meson-5d88c45861bd5d1f60baa9967fffb843c4a162d1.tar.gz
meson-5d88c45861bd5d1f60baa9967fffb843c4a162d1.tar.bz2
msubprojects: do not follow symlinks when purging
Fixes #8891
Diffstat (limited to 'mesonbuild')
-rwxr-xr-xmesonbuild/msubprojects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py
index 269f0fe..656f9a2 100755
--- a/mesonbuild/msubprojects.py
+++ b/mesonbuild/msubprojects.py
@@ -430,7 +430,8 @@ class Runner:
except FileNotFoundError:
pass
- subproject_source_dir = Path(self.repo_dir).resolve()
+ # NOTE: Do not use .resolve() here; the subproject directory may be a symlink
+ subproject_source_dir = Path(self.repo_dir)
# Don't follow symlink. This is covered by the next if statement, but why
# not be doubly sure.