summaryrefslogtreecommitdiff
path: root/misc/esniper/patches
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2006-12-30 17:44:56 +0000
committerheinz <heinz@pkgsrc.org>2006-12-30 17:44:56 +0000
commit5e1e60e1ab9d9817c80082920b0be99e8f99bdea (patch)
tree23a2ea1629fb9b423358418abb92ffc56c4b8905 /misc/esniper/patches
parent3d0ac013c6413940310632d4c4a560ede8a3bdb4 (diff)
downloadpkgsrc-5e1e60e1ab9d9817c80082920b0be99e8f99bdea.tar.gz
The remaining patch in patch-aa has been integrated upstream
(slightly different, in util.c), so patch-aa has become obsolete.
Diffstat (limited to 'misc/esniper/patches')
-rw-r--r--misc/esniper/patches/patch-aa43
1 files changed, 0 insertions, 43 deletions
diff --git a/misc/esniper/patches/patch-aa b/misc/esniper/patches/patch-aa
deleted file mode 100644
index d7b8f5d3559..00000000000
--- a/misc/esniper/patches/patch-aa
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2006/11/29 22:21:30 mjl Exp $
-
---- auction.c.orig Wed Oct 19 13:37:59 2005
-+++ auction.c
-@@ -28,6 +28,7 @@
- #include "buffer.h"
- #include "http.h"
- #include <ctype.h>
-+#include <curl/curl.h>
- #include <limits.h>
- #include <stdio.h>
- #include <stdlib.h>
-@@ -1189,7 +1190,7 @@ ebayLogin(auctionInfo *aip)
- char *url, *logUrl;
- pageInfo_t *pp;
- int ret = 0;
-- char *password;
-+ char *password, *escapedPassword;
-
- if (!(mp = httpGet(LOGIN_1_URL, NULL)))
- return httpError(aip);
-@@ -1198,11 +1199,18 @@ ebayLogin(auctionInfo *aip)
-
- urlLen = sizeof(LOGIN_2_URL) + strlen(options.username);
- password = getPassword();
-- url = malloc(urlLen + strlen(password));
-+ if ((escapedPassword = curl_escape(password, strlen(password))) == NULL) {
-+ log(("ebayLogin(): Could not URL-encode the password"));
-+ freePassword(password);
-+ return 1;
-+ }
-+ freePassword(password);
-+
-+ url = malloc(urlLen + strlen(escapedPassword));
- logUrl = malloc(urlLen + 5);
-
-- sprintf(url, LOGIN_2_URL, options.username, password);
-- freePassword(password);
-+ sprintf(url, LOGIN_2_URL, options.username, escapedPassword);
-+ curl_free(escapedPassword);
- sprintf(logUrl, LOGIN_2_URL, options.username, "*****");
-
- mp = httpGet(url, logUrl);