The following commit has been merged in the sid branch:
commit fddba30d74856e2d5c3f287343569fc259729bc0
Author: Raphaël Hertzog <hert...@debian.org>
Date:   Sun Apr 3 14:58:06 2011 +0200

    dpkg: fix regression when using -R option
    
    The regression was introduced in commit
    280ac914cc52ee5de079c0833bb1df5005c1e7ab. The variable used for the loop
    got incremented twice for each iteration, the net result is that the list
    of filenames contains random data on half of the entries.
    
    Reported-by: Craig Sanders <c...@taz.net.au>

diff --git a/debian/changelog b/debian/changelog
index 0db7705..ec09b8c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+dpkg (1.16.0.1) UNRELEASED; urgency=low
+
+  [ Raphaël Hertzog ]
+  * Fix regression affecting dpkg -R. Closes: #620636
+
+ -- Raphaël Hertzog <hert...@debian.org>  Sun, 03 Apr 2011 15:06:32 +0200
+
 dpkg (1.16.0) unstable; urgency=low
 
   [ Guillem Jover ]
diff --git a/src/archives.c b/src/archives.c
index f1dd779..0a7e0b8 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -1269,7 +1269,7 @@ archivefiles(const char *const *argv)
     arglist= m_malloc(sizeof(char*)*(nfiles+1));
     p = findoutput.buf;
     for (i = 0; i < nfiles; i++) {
-      arglist[i++]= p;
+      arglist[i] = p;
       while (*p++ != '\0') ;
     }
     arglist[i] = NULL;

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to