This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch andyp-removeexit in repository gfs2-utils.
commit 2701208877b3be6d2cee4ff5c4eaaf1aa528ea24 Author: Andrew Price anprice@redhat.com AuthorDate: Tue Jan 10 15:31:02 2023 +0000
Don't call exit() in lgfs2_build_quota_change
Propagate the error condition from lgfs2_build_height() to callers.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/libgfs2/structures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfs2/libgfs2/structures.c b/gfs2/libgfs2/structures.c index faeac9da..700ed75e 100644 --- a/gfs2/libgfs2/structures.c +++ b/gfs2/libgfs2/structures.c @@ -337,7 +337,7 @@ struct lgfs2_inode *lgfs2_build_quota_change(struct lgfs2_inode *per_node, unsig
hgt = lgfs2_calc_tree_height(ip, (blocks + 1) * sdp->sd_bsize); if (lgfs2_build_height(ip, hgt)) - exit(1); + return NULL;
for (x = 0; x < blocks; x++) { bh = lgfs2_get_file_buf(ip, x, 0);