[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new cmp -i 99999999999999999999 failure
From: |
Jim Meyering |
Subject: |
Re: new cmp -i 99999999999999999999 failure |
Date: |
Sun, 25 Jun 2023 18:07:31 -0700 |
On Sun, Jun 25, 2023 at 5:26 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
> Thanks, that let me reproduce the problem. I installed the attached,
> which fixed things for me. Hope it works for you too.
>
> Isn't it a kernel bug that lseek to TYPE_MAXIMUM (off_t) fails with
> errno == EINVAL? EINVAL means the resulting file offset would be
> negative, and TYPE_MAXIMUM (off_t) is not negative.
Thanks. That is better indeed: skipping the syscalls altogether is a
sure way to avoid at least a kernel lseek infelicity.
With that, the tests still pass.