From: Daniel Golle Date: Mon, 2 Nov 2020 20:35:50 +0000 (+0000) Subject: libopkg: fix removal of packages X-Git-Url: http://git.openwrt.org/project/luci.git;master?a=commitdiff_plain;h=11ee06ea67ebe6a6f11323ad5a6d3c77071488cd;p=project%2Fopkg-lede.git libopkg: fix removal of packages The 'dependencies_checked' field in struct abstract_pkg is also used when removing packages, and in that case it is set to '2'. Make the field wide enough to be able to contain that value. Fixes: 532f92d ("libopkg: tighten length of fields in struct abstract_pkg") Signed-off-by: Daniel Golle --- diff --git a/libopkg/pkg.h b/libopkg/pkg.h index 937439e..21108b3 100644 --- a/libopkg/pkg.h +++ b/libopkg/pkg.h @@ -113,7 +113,7 @@ struct abstract_pkg { abstract_pkg_vec_t *provided_by; abstract_pkg_vec_t *replaced_by; - int dependencies_checked:1; + int dependencies_checked:2; pkg_state_status_t state_status:4; pkg_state_flag_t state_flag:11; };