diff options
author | Guillem Jover <guillem@debian.org> | 2019-05-09 05:45:26 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-05-09 05:46:00 +0200 |
commit | 770aa74afb0fbf1c61605e4e2d0a1c27c3a847d6 (patch) | |
tree | bd4ef2da7c0b6fccdf971efae07ba975d964b2db | |
parent | 6e42d508db660f82f58802c10a179819aa8b6103 (diff) | |
download | dpkg-770aa74afb0fbf1c61605e4e2d0a1c27c3a847d6.tar.gz |
dpkg: Set the force defaults before loading the config file
Otherwise we incorrectly override them.
Fixes: commit 52427d9075b4b062fa0db16a70d2c2bda6407857
Closes: #928671
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index dad6e37fd..69ca90e2b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ dpkg (1.19.7) UNRELEASED; urgency=medium * dpkg: Fix off-by-one error in dpkg --abort-error. Closes: #924886 Thanks to Tom Goulet <tomg@sentex.ca>. + * dpkg: Set the force defaults before loading the config file, otherwise we + incorrectly override them. Regression introduced in dpkg 1.19.5. + Closes: #928671 -- Guillem Jover <guillem@debian.org> Mon, 25 Mar 2019 15:41:00 +0100 diff --git a/src/main.c b/src/main.c index f78cc4099..2bb0a22ae 100644 --- a/src/main.c +++ b/src/main.c @@ -742,8 +742,8 @@ int main(int argc, const char *const *argv) { dpkg_locales_init(PACKAGE); dpkg_program_init("dpkg"); - dpkg_options_load(DPKG, cmdinfos); set_force_default(FORCE_ALL); + dpkg_options_load(DPKG, cmdinfos); dpkg_options_parse(&argv, cmdinfos, printforhelp); /* When running as root, make sure our primary group is also root, so |