1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

Disallow empty store path names

Fixes #3239.
This commit is contained in:
Eelco Dolstra 2019-11-26 20:12:15 +01:00
parent 89db9353d7
commit c13193017f
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 11 additions and 4 deletions

View file

@ -4,9 +4,9 @@ clearStore
max=500
reference=$NIX_STORE_DIR/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
reference=$NIX_STORE_DIR/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bla
touch $reference
(echo $reference && echo && echo 0) | nix-store --register-validity
(echo $reference && echo && echo 0) | nix-store --register-validity
echo "making registration..."