guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid nar signature


From: David Thompson
Subject: Re: Invalid nar signature
Date: Sun, 14 Dec 2014 21:33:42 -0500
User-agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)

David Thompson <address@hidden> writes:

> The output of the following code in the context of the
> (guix serialization) module is "\r", it should be "nix-archive-1":
>
>   (with-input-from-file "some-nar-file"
>     (lambda ()
>       (read-string (current-input-port))))

Also, note that the following code *does* yield "nix-archive-1":

   (with-input-from-file "some-nar-file"
     (lambda ()
       (read-int (current-input-port))
       (read-string (current-input-port))))

So, if I remove the first 8 bytes of the file (which when read as an
integer is 1), things look good.  What's going on here?

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate



reply via email to

[Prev in Thread] Current Thread [Next in Thread]