Commit Diff
- Commit:
1247ca2fed601968ea335d0623ffac2973b1b5bc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- fix bogus "bad offset in pack file" errors wrongly raised by gotd Because copy_ref_delta() was forgetting to update the *outsize output parameter, when clients sent ref-deltas gotd was miscalculating the on-disk size of the pack file and would report "bad offset in pack file" if an object was stored at an offset beyond the miscalculated smaller size.
- Actions:
- Patch | Tree
--- gotd/repo_write.c +++ gotd/repo_write.c @@ -843,6 +843,7 @@ copy_ref_delta(int infd, int outfd, off_t *outsize, BU return err; *buf_pos += SHA1_DIGEST_LENGTH; + *outsize += SHA1_DIGEST_LENGTH; return NULL; }