(zilch magic): refuse to handle self-references
This commit is contained in:
parent
9b03914ec1
commit
8e2f0f3014
1 changed files with 4 additions and 0 deletions
|
|
@ -56,6 +56,10 @@
|
|||
(define references-filtered (list-copy references))
|
||||
(define self-references (member path references-filtered string=?))
|
||||
(when self-references
|
||||
; It turns out these are broken in both Nix and Lix.
|
||||
; Also, I now don't have to implement the _second_ type of modulo
|
||||
; hash in Scheme, so that's a win for me.
|
||||
(error "Refusing to import self-referenced CA path into the store.")
|
||||
(if (null? (cdr self-references))
|
||||
(set! references-filtered '())
|
||||
(begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue