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