aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/elog.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2017-10-10 13:49:37 -0400
committerRuss Cox <rsc@swtch.com>2017-10-10 13:51:24 -0400
commit67dbeee5fe9e2a855384048615bafe100e876f4c (patch)
treef5e2960b2bf7abcc774678b65f947aac792c7fd0 /src/cmd/acme/elog.c
parent680c57a15c51c302d89aec134e25f08820d3f30d (diff)
downloadplan9port-67dbeee5fe9e2a855384048615bafe100e876f4c.tar.gz
plan9port-67dbeee5fe9e2a855384048615bafe100e876f4c.tar.bz2
plan9port-67dbeee5fe9e2a855384048615bafe100e876f4c.zip
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.)
Diffstat (limited to 'src/cmd/acme/elog.c')
-rw-r--r--src/cmd/acme/elog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/acme/elog.c b/src/cmd/acme/elog.c
index 4ec3e3b2..c5650f03 100644
--- a/src/cmd/acme/elog.c
+++ b/src/cmd/acme/elog.c
@@ -8,6 +8,7 @@
#include <frame.h>
#include <fcall.h>
#include <plumb.h>
+#include <libsec.h>
#include "dat.h"
#include "fns.h"
#include "edit.h"