Bug fixes

This commit is contained in:
2025-11-15 10:38:45 +01:00
parent a11740ab41
commit a366b46398
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ static int store_chunk(ChunkStore *store, string data, SHA256 *hash)
// This is okay as long as we check that the hash
// is correct while reading back the data.
Handle fd;
if (file_open(path, &fd) < 0)
if (file_open(path, &fd) < 0) // TODO: open in overwrite mode
return -1;
int copied = 0;
while (copied < data.len) {