Workaround to unbreak rpm2cpio.

From jasoni@, ultimately from FreeBSD.  ok espie@
This commit is contained in:
naddy 2001-08-28 19:55:30 +00:00
parent dc3c6bfdd7
commit a4d27a9d20

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-rpm2cpio_c,v 1.1 2001/08/28 19:55:30 naddy Exp $
--- rpm2cpio.c.orig Tue Aug 14 17:17:09 2001
+++ rpm2cpio.c Tue Aug 14 17:17:42 2001
@@ -55,7 +55,7 @@ int main(int argc, char **argv)
}
gzdi = Fdopen(fdi, rpmio_flags); /* XXX gzdi == fdi */
- if (gzdi == NULL || Ferror(gzdi)) {
+ if (gzdi == NULL) {
fprintf(stderr, _("cannot re-open payload: %s\n"), Fstrerror(gzdi));
exit(EXIT_FAILURE);
}