openbsd-ports/misc/rpm/patches/patch-rpm2cpio_c
naddy a4d27a9d20 Workaround to unbreak rpm2cpio.
From jasoni@, ultimately from FreeBSD.  ok espie@
2001-08-28 19:55:30 +00:00

13 lines
435 B
Plaintext

$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);
}