Re: Error "fatal: cannot pread pack file: Success"
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 28, 2007, 16:49 UTC
- Message-ID
- <20070228164922.GB5924@spearce.org>
- In-Reply-To
- <118833cc0702280842g3e121fg601d7e102956ba93@mail.gmail.com>
Morten Welinder <mwelinder@gmail.com> wrote:
> >+ die("cannot pread pack file: %s from=%lu, packfile
> >size=%lu", strerror(errno), from, lseek(pack_fd, SEEK_END, 0));
>
> That might give you the errno from the lseek call.Yes, and I don't care here. We're dead either way, that pread is returning bunk and we don't know why.
But it is also giving me SEEK_END, not the end of the file. I got the arguments backwards to lseek. Whoops. ;-)
-- Shawn.