michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 5 months ago
Clone
813822
diff --git a/rpm2cpio.c b/rpm2cpio.c
813822
index 89ebdfa..ae999ff 100644
813822
--- a/rpm2cpio.c
813822
+++ b/rpm2cpio.c
813822
@@ -84,7 +84,12 @@ int main(int argc, char *argv[])
813822
 	exit(EXIT_FAILURE);
813822
     }
813822
 
813822
-    rc = (ufdCopy(gzdi, fdo) == payload_size) ? EXIT_SUCCESS : EXIT_FAILURE;
813822
+    /*
813822
+     * XXX HACK for #1142949: should be equality test, but archive size
813822
+     * short by cpio trailer size in packages built with rpm 4.12.0
813822
+     * and its pre-releases.
813822
+     */
813822
+    rc = (ufdCopy(gzdi, fdo) >= payload_size) ? EXIT_SUCCESS : EXIT_FAILURE;
813822
 
813822
     Fclose(fdo);
813822