head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.30 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.28 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.26 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.24 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.22 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.20 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.18 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.16 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.14 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.12 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.10 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.8 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.6 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.4 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.2 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.2.0.6 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.4 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.2 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.1.1.1.0.2 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2006.12.30.17.44.57; author heinz; state dead; branches; next 1.4; 1.4 date 2006.11.29.22.21.30; author mjl; state Exp; branches; next 1.3; 1.3 date 2006.10.22.18.51.32; author heinz; state Exp; branches; next 1.2; 1.2 date 2006.01.28.18.28.22; author heinz; state Exp; branches; next 1.1; 1.1 date 2005.11.13.17.51.40; author heinz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.13.17.51.40; author heinz; state Exp; branches; next ; desc @@ 1.5 log @The remaining patch in patch-aa has been integrated upstream (slightly different, in util.c), so patch-aa has become obsolete. @ text @$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 +#include #include #include #include @@@@ -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); @ 1.4 log @Oops, commit changed patch file too. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2006/01/28 18:28:22 heinz Exp $ @ 1.3 log @Due to a change of Ebay's HTML pages esniper needed to be patched to catch up with this. A new release will contain the patch but it is uncertain when it will appear on sourceforge. This should fix PR pkg/34875 by Thomas Feddersen. @ text @d3 1 a3 1 --- auction.c.orig 2005-10-19 13:37:59.000000000 +0200 a12 45 @@@@ -749,7 +750,7 @@@@ parseBidHistory(memBuf_t *mp, auctionInf aip->reserve = 1; else { aip->reserve = 0; - if ((foundHeader = !strcmp("User ID", line))) + if ((foundHeader = !strcmp("Bidder", line))) /* skip over first line */ freeTableRow(getTableRow(mp)); } @@@@ -762,7 +763,7 @@@@ parseBidHistory(memBuf_t *mp, auctionInf * Single item auction: * Header line: * "" - * "User ID" + * "Bidder" * "Bid Amount" * "Date of bid" * "" @@@@ -784,7 +785,7 @@@@ parseBidHistory(memBuf_t *mp, auctionInf * Purchase (buy-it-now only): * Header line: * "" - * "User ID" + * "Bidder" * "Bid Amount" * "Qty" * "Date of bid" @@@@ -808,7 +809,7 @@@@ parseBidHistory(memBuf_t *mp, auctionInf * Dutch auction: * Header line: * "" - * "User ID" + * "Bidder" * "Bid Amount" * "Quantity wanted" * "Quantity winning" @@@@ -841,7 +842,7 @@@@ parseBidHistory(memBuf_t *mp, auctionInf char *rawHeader = (ncolumns >= 5) ? row[1] : NULL; char *header = getNonTagFromString(rawHeader); - foundHeader = header && !strcmp(header, "User ID"); + foundHeader = header && !strcmp(header, "Bidder"); freeTableRow(row); free(header); } @ 1.2 log @Added a forgotten include file in our patch for auction.c. This way, the compiler does not complain (or abort) about "int to pointer conversion" anymore. This should fix the build on IRIX with the mipspro compiler. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1.1.1 2005/11/13 17:51:40 heinz Exp $ d3 1 a3 1 --- auction.c.orig Wed Oct 19 13:37:59 2005 d13 45 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d5 9 a13 1 @@@@ -1189,7 +1189,7 @@@@ ebayLogin(auctionInfo *aip) d22 1 a22 1 @@@@ -1198,11 +1198,18 @@@@ ebayLogin(auctionInfo *aip) @ 1.1.1.1 log @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). @ text @@