diff options
author | heinz <heinz> | 2005-11-13 17:51:40 +0000 |
---|---|---|
committer | heinz <heinz> | 2005-11-13 17:51:40 +0000 |
commit | 10698b94b852b3615731accc30fb8ae67d07fb53 (patch) | |
tree | 75b25ac7be4cc2a1be0d636a2f8cc3fc2e1e9ec1 /misc/esniper/patches | |
parent | 3dc8983c6396d5fa23c47922596446cbc490fa9f (diff) | |
download | pkgsrc-10698b94b852b3615731accc30fb8ae67d07fb53.tar.gz |
Initial import of esniper 2.14.0.
Esniper is a simple, lightweight command line tool for sniping ebay auctions.
It runs on all flavors of Linux, Unix and Windows, and should adapt easily
to other operating systems.
Pkgsrc changes:
- Added patch-aa to let esniper accept eBay passwords with unsafe
characters (according to URL-encoding rules). Submitted to the upstream
author (esniper-Bugs-1352595).
Diffstat (limited to 'misc/esniper/patches')
-rw-r--r-- | misc/esniper/patches/patch-aa | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/misc/esniper/patches/patch-aa b/misc/esniper/patches/patch-aa new file mode 100644 index 00000000000..4c9415bd267 --- /dev/null +++ b/misc/esniper/patches/patch-aa @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/11/13 17:51:40 heinz Exp $ + +--- auction.c.orig Wed Oct 19 13:37:59 2005 ++++ auction.c +@@ -1189,7 +1189,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 +1198,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); |