Added .INCOMPLETE hack to aid with marking finished transfers.

This commit is contained in:
Matthew Bloch
2012-05-29 11:24:24 +01:00
parent ab0dfb5eca
commit 21ccd17ea5
4 changed files with 15 additions and 4 deletions

View File

@@ -92,6 +92,9 @@ void params_serve(
out->bind_to.v4.sin_port = htobe16(out->bind_to.v4.sin_port);
out->filename = s_file;
out->filename_incomplete = xmalloc(strlen(s_file)+11);
strcpy(out->filename_incomplete, s_file);
strcpy(out->filename_incomplete + strlen(s_file), ".INCOMPLETE");
}
void params_readwrite(