mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
nar: Read archive signatures as Latin-1 strings.
Fixes <http://bugs.gnu.org/19610>. Reported by Mark H Weaver <mhw@netris.org>. * guix/nar.scm (restore-one-item): Use 'read-latin1-string' to read the signature.
This commit is contained in:
parent
aa27b56083
commit
71c1d5280c
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
|
@ -211,7 +211,9 @@ (define port*
|
|||
(_ "importing file or directory '~a'...~%")
|
||||
file)
|
||||
|
||||
(let ((sig (and has-sig? (read-string port))))
|
||||
;; The signature may contain characters that are meant to be
|
||||
;; interpreted as bytes in a 'char *', so read them as a ISO-8859-1.
|
||||
(let ((sig (and has-sig? (read-latin1-string port))))
|
||||
(when verify-signature?
|
||||
(if sig
|
||||
(begin
|
||||
|
|
Loading…
Reference in a new issue