X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=rpm-5.4.10-fix-neon-saving-error-pages-as-target-file.patch;h=300a35097d1a80aa05c6c03e28a34ac576aa270c;hp=2f4602d4e705bb7292692eaa4c48b825298dee25;hb=9b07f84b664587b8253db1d912986fb8dad3ba50;hpb=34befcc56f84a0fac935701f6f2ca4895df508aa diff --git a/rpm-5.4.10-fix-neon-saving-error-pages-as-target-file.patch b/rpm-5.4.10-fix-neon-saving-error-pages-as-target-file.patch index 2f4602d..300a350 100644 --- a/rpm-5.4.10-fix-neon-saving-error-pages-as-target-file.patch +++ b/rpm-5.4.10-fix-neon-saving-error-pages-as-target-file.patch @@ -37,20 +37,3 @@ if (rc) goto errxit; ---- rpm-5.4.10/rpmio/rpmio.c.dl_error~ 2012-07-06 17:39:19.000000000 +0200 -+++ rpm-5.4.10/rpmio/rpmio.c 2012-07-11 19:47:59.396732322 +0200 -@@ -2306,9 +2306,12 @@ fprintf(stderr, "*** ufdOpen(%s,0x%x,0%o - u->openError = httpReq(fd, cmd, path); - #endif - if (u->openError < 0) { -+ /* XXX rpmdav doesn't behave consistently with the rest...*/ -+#ifndef WITH_NEON - /* XXX make sure that we can exit through ufdClose */ -- fd = fdLink(fd, "error ctrl (ufdOpen HTTP)"); -- fd = fdLink(fd, "error data (ufdOpen HTTP)"); -+ fd = u->ctrl = fdLink(fd, "error ctrl (ufdOpen HTTP)"); -+ fd = u->data = fdLink(fd, "error data (ufdOpen HTTP)"); -+#endif - } else { - fd->bytesRemain = ((!strcmp(cmd, "GET")) - ? fd->contentLength : -1);