spack/lib/spack
Harmen Stoppels c300b92047
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 /`.
2022-03-23 08:54:55 -06:00
..
docs Remove known issues from documentation (#29664) 2022-03-23 08:06:49 +01:00
env Adding basic Windows features (#21259) 2022-03-17 09:01:01 -07:00
external Windows Support: Testing Suite integration 2022-03-17 09:01:01 -07:00
llnl python: drop dependency on file for script check (#29513) 2022-03-23 10:31:23 +01:00
spack environment: be more defensive when deleting roots for old views (#29636) 2022-03-23 08:54:55 -06:00