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=acd58f71a1f94c16698394cabe66b90f5d75676a

commit acd58f71a1f94c16698394cabe66b90f5d75676a
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Oct 21 02:53:01 2022 +0200

    libdpkg: Use updatesdir when using the updates directory
    
    Instead of using the updatefnbuf variable which can contain either the
    directory name or the pathname to one of its containing filenames,
    always use the updatedir variable, which is the obvious and
    straightforward variable to use.
---
 lib/dpkg/dbmodify.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/dpkg/dbmodify.c b/lib/dpkg/dbmodify.c
index c8a03bc7b..b4d6e2044 100644
--- a/lib/dpkg/dbmodify.c
+++ b/lib/dpkg/dbmodify.c
@@ -84,16 +84,16 @@ static void cleanupdates(void) {
 
   *updatefnrest = '\0';
   updateslength= -1;
-  cdn= scandir(updatefnbuf, &cdlist, &ulist_select, alphasort);
+  cdn = scandir(updatesdir, &cdlist, &ulist_select, alphasort);
   if (cdn == -1) {
     if (errno == ENOENT) {
       if (cstatus >= msdbrw_write &&
-          dir_make_path(updatefnbuf, 0755) < 0)
+          dir_make_path(updatesdir, 0755) < 0)
         ohshite(_("cannot create the dpkg updates directory %s"),
-                updatefnbuf);
+                updatesdir);
       return;
     }
-    ohshite(_("cannot scan updates directory '%.255s'"), updatefnbuf);
+    ohshite(_("cannot scan updates directory '%.255s'"), updatesdir);
   }
 
   if (cdn) {

-- 
Dpkg.Org's dpkg

Reply via email to