commit 01392bd60410ca454e46653c8a740008e84545ef from: Tracey Emery date: Fri Feb 10 22:19:50 2023 UTC gotwebd: abort tree and blob as well commit - 4f152e84c01e22799218a449a85a105ff94fdf9d commit + 01392bd60410ca454e46653c8a740008e84545ef blob - 5213b41bf3ead6134a9406eeefc91ebc07fbb000 blob + f590fbeec3d166b03a21d728cd7b310503675b34 --- gotwebd/got_operations.c +++ gotwebd/got_operations.c @@ -767,8 +767,10 @@ got_output_repo_tree(struct request *c, for (i = 0; i < nentries; i++) { te = got_object_tree_get_entry(tree, i); - if (cb(c->tp, te) == -1) + if (cb(c->tp, te) == -1) { + error = got_error(GOT_ERR_CANCELLED); break; + } } done: free(escaped_name); @@ -891,8 +893,10 @@ got_output_blob_by_lines(struct template *tp, struct g if (err || linelen == -1) break; lineno++; - if (cb(tp, line, lineno) == -1) + if (cb(tp, line, lineno) == -1) { + err = got_error(GOT_ERR_CANCELLED); break; + } } free(line);