secret-service: Fix file port leak in 'secret-service-send-secrets'.
* gnu/build/secret-service.scm (secret-service-send-secrets): Use 'call-with-input-file' instead of 'open-input-file'.master
parent
4d047853da
commit
f9090015c5
|
@ -69,8 +69,10 @@ local PORT. If connect fails, sleep 1s and retry RETRY times."
|
|||
(version 0)
|
||||
(files ,files-sizes-modes))))
|
||||
(write secrets sock)
|
||||
(for-each (compose (cute dump-port <> sock)
|
||||
(cute open-input-file <>))
|
||||
(for-each (lambda (file)
|
||||
(call-with-input-file file
|
||||
(lambda (input)
|
||||
(dump-port input sock))))
|
||||
files))))
|
||||
|
||||
(define (secret-service-receive-secrets port)
|
||||
|
|
Reference in New Issue