Commit 6bb30d9ac5bf8593ff093c65c5c6b9e1e596df0a

Stefan Sperling 2018-03-09T18:02:39

the file index header checksum applies to on-disk data

1
2
3
4
5
6
7
8
9
10
11
diff --git a/lib/got_file_index_priv.h b/lib/got_file_index_priv.h
index eef7ed2..c1fb905 100644
--- a/lib/got_file_index_priv.h
+++ b/lib/got_file_index_priv.h
@@ -65,5 +65,5 @@ struct got_file_index_hdr {
 	uint32_t version;	/* big-endian on disk */
 	uint32_t nentries;	/* big-endian on disk */
 	struct got_file_index_entry *entries; /* big-endian on disk */
-	uint8_t sha1[SHA1_DIGEST_LENGTH]; /* checksum of above data */
+	uint8_t sha1[SHA1_DIGEST_LENGTH]; /* checksum of above on-disk data */
 };