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 c9034db..ec83e95 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 88451e3..30e8373 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");
        }