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=40580729aefa5d7ee13142c71f96e9cba9dbdec6 commit 40580729aefa5d7ee13142c71f96e9cba9dbdec6 Author: Guillem Jover <[email protected]> AuthorDate: Sat Oct 22 01:31:31 2022 +0200 libdpkg: Use pkg_infodb_get_dir() on opendir() instead of oldname Use the obvious directory name instead of a variable that is supposed to hold filenames within that directory. --- lib/dpkg/db-ctrl-upgrade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpkg/db-ctrl-upgrade.c b/lib/dpkg/db-ctrl-upgrade.c index c833c2b36..125d01657 100644 --- a/lib/dpkg/db-ctrl-upgrade.c +++ b/lib/dpkg/db-ctrl-upgrade.c @@ -86,7 +86,7 @@ pkg_infodb_link_multiarch_files(void) varbuf_add_buf(&newname, oldname.buf, oldname.used); varbuf_end_str(&newname); - db_dir = opendir(oldname.buf); + db_dir = opendir(pkg_infodb_get_dir()); if (!db_dir) ohshite(_("cannot read info directory")); -- Dpkg.Org's dpkg

