The following commit has been merged in the iwj branch:
commit 26098c761a60125aad8432b5133c6b04120a3b47
Author: Ian Jackson <[EMAIL PROTECTED]>
Date:   Thu Nov 1 16:23:39 2007 +0000

    * lstat conffile path - correct use of sizeof for filestat in memset.
      See also #281057.

diff --git a/debian/changelog b/debian/changelog
index 97a1353..58bfcf3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -69,6 +69,8 @@ dpkg (1.14.8) UNRELEASED; urgency=low
   [ Ian Jackson ]
   * Treat successful calls to the postinst as always making the package
     installed.  Reverts Brian Carlson's patch from  #432893.
+  * lstat conffile path - correct use of sizeof for filestat in memset.
+    See also #281057.
 
   [ Egmont Koblinger ]
   * lstat correct conffile path even with --root.  Closes: #281057.
diff --git a/src/processarc.c b/src/processarc.c
index 31629da..c14f25a 100644
--- a/src/processarc.c
+++ b/src/processarc.c
@@ -691,7 +691,7 @@ void process_archive(const char *filename) {
              ohshite(_("unable to stat other new file `%.250s'"),
                      cfile->namenode->name);
            memset(cfile->namenode->filestat, 0,
-                  sizeof(cfile->namenode->filestat));
+                  sizeof(*cfile->namenode->filestat));
            continue;
          }
        }

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to