aboutsummaryrefslogtreecommitdiff
path: root/client/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/file.c')
-rw-r--r--client/file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/file.c b/client/file.c
index 581d4a7..861da6a 100644
--- a/client/file.c
+++ b/client/file.c
@@ -46,9 +46,10 @@ overwrite_file(const char *name, const void *data, size_t length)
sysdie("close of %s failed (file probably truncated)", name);
}
+
/*
- * Given a filename, some data, and a length, write that data to the given
- * file safely, but overwrite any existing file by that name.
+ * Given a filename, some data, and a length, append that data to an existing
+ * file. Dies on any failure.
*/
void
append_file(const char *name, const void *data, size_t length)
@@ -70,6 +71,7 @@ append_file(const char *name, const void *data, size_t length)
sysdie("close of %s failed (file probably truncated)", name);
}
+
/*
* Given a filename, some data, and a length, write that data to the given
* file safely and atomically by creating file.new, writing the data, linking