xbps{,-static}: patch from master to fix https://github.com/voidlinux/xbps/issues/172

This commit is contained in:
Juan RP 2016-04-26 15:06:42 +02:00
parent dd6690f060
commit 7520012f1e
3 changed files with 28 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# NOTE: keep this package synchronized with "srcpkgs/xbps". # NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static pkgname=xbps-static
version=0.51 version=0.51
revision=6 revision=7
build_style=configure build_style=configure
short_desc="The XBPS package system utilities - static binaries" short_desc="The XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"

View File

@ -0,0 +1,26 @@
From 3a5c1f3a71200f45f06dace1f55faf782ece9352 Mon Sep 17 00:00:00 2001
From: Enno Boland <g@s01.de>
Date: Tue, 26 Apr 2016 13:56:10 +0200
Subject: [PATCH] lib/fetch/http.c: fix EOL at HTTP CONNECT
fixes #172.
---
lib/fetch/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/fetch/http.c b/lib/fetch/http.c
index a027c39..433bd11 100644
--- lib/fetch/http.c
+++ lib/fetch/http.c
@@ -733,7 +733,7 @@ http_connect(struct url *URL, struct url *purl, const char *flags, int *cached)
/* fetch_connect() has already set an error code */
return (NULL);
if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && purl) {
- http_cmd(conn, "CONNECT %s:%d HTTP/1.1",
+ http_cmd(conn, "CONNECT %s:%d HTTP/1.1\r\n",
URL->host, URL->port);
if (http_get_reply(conn) != HTTP_OK) {
fetch_close(conn);
--
2.8.1

View File

@ -1,7 +1,7 @@
# Template file for 'xbps' # Template file for 'xbps'
pkgname=xbps pkgname=xbps
version=0.51 version=0.51
revision=6 revision=7
bootstrap=yes bootstrap=yes
build_style=configure build_style=configure
short_desc="The XBPS package system utilities" short_desc="The XBPS package system utilities"