From 67dbeee5fe9e2a855384048615bafe100e876f4c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 10 Oct 2017 13:49:37 -0400 Subject: acme: check file content before declaring file "modified since last read" Bad remote file systems can change mtime unexpectedly, and then there is the problem that git rebase and similar operations like to change the files and then change them back, modifying the mtimes but not the content. Avoid spurious Put errors on both of those by checking file content. (False positive "modified since last read" make the real ones difficult to notice.) --- src/cmd/acme/edit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd/acme/edit.c') diff --git a/src/cmd/acme/edit.c b/src/cmd/acme/edit.c index 4495bf69..d3f82059 100644 --- a/src/cmd/acme/edit.c +++ b/src/cmd/acme/edit.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "dat.h" #include "edit.h" #include "fns.h" -- cgit v1.2.3