"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Todd C. Miller" <millert@openbsd.org>
Subject:
Re: vi struggling to save commit messages
To:
Ted Bullock <tbullock@comlore.com>
Cc:
gameoftrees@openbsd.org
Date:
Wed, 08 Mar 2023 13:24:32 -0700

Download raw body.

Thread
On Wed, 08 Mar 2023 13:19:39 -0700, Ted Bullock wrote:

> I can see why it triggers, it's comparing identical timestamps, not
> relative. This is inconsistent with the error text too which explicitly
> says "file modified more recently than this copy".
>
> timespeccmp(&sb.st_mtim, &ep->mtim, !=)
>
> should be
>
> timespeccmp(&sb.st_mtim, &ep->mtim, <=)

Are you saying that the current mtime is _older_ than the original?
Is this just a matter of the nsec portion being truncated?

 - todd