summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-03-23 15:54:55 +0100
committerGitHub <noreply@github.com>2022-03-23 08:54:55 -0600
commitc300b9204778a4ed21f32d9d77dc11a17c4f46a0 (patch)
tree8f3f4087af327ffbf5cd313aa48e3f0fd67a90b4 /etc
parentf41c3a0fe96df09e3d6887dbeda6cb822e32e7f5 (diff)
downloadspack-c300b9204778a4ed21f32d9d77dc11a17c4f46a0.tar.gz
spack-c300b9204778a4ed21f32d9d77dc11a17c4f46a0.tar.bz2
spack-c300b9204778a4ed21f32d9d77dc11a17c4f46a0.tar.xz
spack-c300b9204778a4ed21f32d9d77dc11a17c4f46a0.zip
environment: be more defensive when deleting roots for old views (#29636)
Currently `old_root` is computed by reading the symlink at `self.root`. We should be more defensive in removing it by checking that it is in the same directory as the new root. Otherwise, in the worst case, when someone runs `spack env create --with-view=./view -d .` and `view` already exists and is a symlink to `/`, Spack effectively runs `rm -rf /`.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions