This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=6b4fdaa805b66d897785bb2d88de32a99d990138 commit 6b4fdaa805b66d897785bb2d88de32a99d990138 Author: Guillem Jover <guil...@debian.org> AuthorDate: Thu Dec 8 20:30:38 2022 +0100 libdpkg: Fix pdb_lax_stanza_parser and pdb_allow_empty aliased values The pdb_lax_stanza_parser constant was assigned the last value to avoid renumbering all other enum constants, but because it was placed unordered it was predictably not future-proof. Later on a new constant was assigned as the last enum constant reusing that same value, causing the current aliasing. This ends up currently being a non-issue, as all places where we pass one of the constants we also pass the other. Fixes: commit 99c9cdbf1b9650ef5025c3c06ea918ef3007888e --- lib/dpkg/dpkg-db.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dpkg/dpkg-db.h b/lib/dpkg/dpkg-db.h index f94c7fcb8..036b9e9b8 100644 --- a/lib/dpkg/dpkg-db.h +++ b/lib/dpkg/dpkg-db.h @@ -346,15 +346,15 @@ enum parsedbflags { /** Perform laxer version parsing. */ pdb_lax_version_parser = DPKG_BIT(6), /** Perform laxer control stanza parsing. */ - pdb_lax_stanza_parser = DPKG_BIT(9), + pdb_lax_stanza_parser = DPKG_BIT(7), /** Perform laxer parsing, used to transition to stricter parsing. */ pdb_lax_parser = pdb_lax_stanza_parser | pdb_lax_version_parser, /** Close file descriptor on context destruction. */ - pdb_close_fd = DPKG_BIT(7), + pdb_close_fd = DPKG_BIT(8), /** Interpret filename ‘-’ as stdin. */ - pdb_dash_is_stdin = DPKG_BIT(8), + pdb_dash_is_stdin = DPKG_BIT(9), /** Allow empty/missing files. */ - pdb_allow_empty = DPKG_BIT(9), + pdb_allow_empty = DPKG_BIT(10), /* Standard operations. */ -- Dpkg.Org's dpkg