commit 1247ca2fed601968ea335d0623ffac2973b1b5bc from: Stefan Sperling date: Tue Jul 01 14:10:13 2025 UTC 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. commit - 72edd51a1ae363f5b108c859edbb1fc284bc41b7 commit + 1247ca2fed601968ea335d0623ffac2973b1b5bc blob - 887ce22936dbbe8f3347e30f9fc208f661be3c7e blob + 76f58c2c3fdb86ee2eaef3de5de9245899f628b0 --- 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; }