Fix syntax mistake that could cause pristine-tar to in some cases fail on tarballs...
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 12 Apr 2009 17:20:07 +0000 (13:20 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 12 Apr 2009 17:20:07 +0000 (13:20 -0400)
debian/changelog
pristine-tar

index c9034db99b2218674d0e0278318001def61a4a93..ec83e95e8ed5567e7058e2e3ae05dde326dcc523 100644 (file)
@@ -1,3 +1,10 @@
+pristine-tar (0.22) unstable; urgency=low
+
+  * Fix syntax mistake that could cause pristine-tar to in some cases
+    fail on tarballs containing files named "0". Closes: #523773
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 12 Apr 2009 13:20:04 -0400
+
 pristine-tar (0.21) unstable; urgency=low
 
   * Add support for GIT_DIR. Closes: #512619
index 88451e322b98b16761a01a93c6e1e3d188a011cf..30e837386868eca61c1a015445f6a6f7c5d5e2da 100755 (executable)
@@ -290,7 +290,7 @@ sub recreatetarball {
                        chmod(0755, "$tempdir/workdir/$file") ||
                                die "chmod: $!";
                }
-               utime 0, 0, "$tempdir/workdir/$file" || die "utime: $!";
+               utime(0, 0, "$tempdir/workdir/$file") || die "utime: $!";
        }
        
        # If some files couldn't be matched up with the manifest,
@@ -311,7 +311,7 @@ sub recreatetarball {
                                chmod(0755, $_) ||
                                        die "chmod: $!";
                        }
-                       utime 0, 0, $_ || die "utime: $!";
+                       utime(0, 0, $_) || die "utime: $!";
                }, "$tempdir/workdir");
        }