Workaround to unbreak rpm2cpio.
From jasoni@, ultimately from FreeBSD. ok espie@
This commit is contained in:
parent
dc3c6bfdd7
commit
a4d27a9d20
12
misc/rpm/patches/patch-rpm2cpio_c
Normal file
12
misc/rpm/patches/patch-rpm2cpio_c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user