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.)
This commit is contained in:
Russ Cox 2017-10-10 13:49:37 -04:00
parent 680c57a15c
commit 67dbeee5fe
23 changed files with 79 additions and 13 deletions

View file

@ -8,6 +8,7 @@
#include <frame.h>
#include <fcall.h>
#include <plumb.h>
#include <libsec.h>
#include "dat.h"
#include "fns.h"