summaryrefslogtreecommitdiff
path: root/LICENSE-APACHE
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-03-23 15:54:55 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-04-14 11:08:17 +0200
commit1cc2b82408b380bf13d057305bf62d479779d3ea (patch)
tree3ffe0648542aaae8d1bd4ecc4665e55e008a70ea /LICENSE-APACHE
parentad2c0208487daee84892e81ed248360a3feb4226 (diff)
downloadspack-1cc2b82408b380bf13d057305bf62d479779d3ea.tar.gz
spack-1cc2b82408b380bf13d057305bf62d479779d3ea.tar.bz2
spack-1cc2b82408b380bf13d057305bf62d479779d3ea.tar.xz
spack-1cc2b82408b380bf13d057305bf62d479779d3ea.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 'LICENSE-APACHE')
0 files changed, 0 insertions, 0 deletions