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/fns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/acme/fns.h') diff --git a/src/cmd/acme/fns.h b/src/cmd/acme/fns.h index af063445..1cd35257 100644 --- a/src/cmd/acme/fns.h +++ b/src/cmd/acme/fns.h @@ -25,7 +25,7 @@ void savemouse(Window*); int restoremouse(Window*); void clearmouse(void); void allwindows(void(*)(Window*, void*), void*); -uint loadfile(int, uint, int*, int(*)(void*, uint, Rune*, int), void*); +uint loadfile(int, uint, int*, int(*)(void*, uint, Rune*, int), void*, DigestState*); void movetodel(Window*); Window* errorwin(Mntdir*, int); -- cgit v1.2.3