summaryrefslogtreecommitdiff
path: root/net/libfetch
AgeCommit message (Collapse)AuthorFilesLines
2012-04-26Define LIBFETCH_PRINTFLIKE for !gccjoerg1-1/+3
2012-04-07Fix the last commit to not break bootstrap.joerg3-6/+11
2012-04-07Fix build with clang.wiz3-5/+7
2011-12-17If using fetch in FETCH_USING then fetch and libfetch cannot use checkperms.sbd1-1/+6
2011-11-08More help for stupid glibc headers.joerg1-2/+3
2011-11-06Do not define HAVE_SA_LEN when __minix is defined per pkg/45039tcort1-2/+2
2011-10-02PR#45210: Fix pkgsrc bootstrap with gcc 4.6marino1-5/+4
Libfetch build failure with gcc 4.6 is due to the a couple of assigned variables not getting used. This patch allows systems like Debian and OpenIndiana to bootstrap pkgsrc.
2011-08-21Be a bit nicer to broken GCC array boundary checks.joerg1-12/+14
2011-01-23Handle the case where tm_year is a long variable, from Benny Siegertagc2-7/+7
and Thorsten Glaser. Part of the MirBSD support changes.
2010-08-20libfetch-2.33:joerg2-3/+8
Don't leak FTP connections on errors in fetch or if only stat is requested. Reported via Xavier Chantry.
2010-06-13libfetch-2.32:joerg2-3/+4
Fix NULL dereference after failed calloc call. From Tavian Barnes.
2010-04-22Regen.joerg1-3/+17
2010-03-21libfetch-2.31:joerg4-27/+77
PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs if the home directory is not the root directory. Remember the current directory the first time a CWD / CDUP has to be issued. Use the document as full URL if the URL started with two / (quoted or not), otherwise append it to the initial directory.
2010-02-24Fix RCS ID.joerg1-1/+1
2010-01-24Fix a variable reference in TCP_NOPUSH case.joerg1-2/+2
2010-01-24Use the hard-core approach of killing SIGPIPE explicitly onjoerg1-1/+20
platforms that don't have MSG_NOSIGNAL like Solaris.
2010-01-23libfetch-2.30:joerg2-12/+71
HTTP keep-alive support
2010-01-23libfetch-2.29:joerg5-111/+54
Push \r\n up to the users of fetch_putln and remove it. Use send instead of write(v) to avoid SIGPIPE.
2010-01-23Remove is_active.joerg3-7/+3
2010-01-22Fix typo in function names, bump date.wiz1-4/+4
2010-01-22libfetch-2.28:joerg8-114/+181
Revamp FTP connection cache. Move it to the common layer to be later shared with HTTP (for persistent connection). The application controls how much caching is desired. Drop the reference counting on connections. Add a callback when the cached connection is dropped due to LRU. Over all, this allows more than one session cached per host and sessions cached to different servers.
2010-01-17Recursive PKGREVISION bump for jpeg update to 8.wiz1-1/+2
2010-01-11libfetch-2.27:joerg2-4/+4
The connection sharing didn't handle the case of active transfers correctly and tried to close the connection in that case (PR 42607). Correctly check if there is a transfer going on and just leave the connection alone in that case.
2009-10-15libfetch-2.26:joerg8-30/+169
- Add support to aggressively cache directory listenings, useful for HTTP - Avoid leaking memory in error cases. From Xavier from Arch Linux.
2009-08-16libfetch-2.24:joerg4-11/+26
Fix a bug in the line reading optimisation, which could get confused if the byte following the new line is a NUL. Adresses Arch Linux problem report #15845. Do not reuse a FTP connection if there is currently a transfer active. Some FTP servers hang on the NOOP command. Reported by Manuel Bouyer.
2009-08-11It's not MAKE_JOBS safe.hasso1-1/+3
2009-08-11Fix some lint warnings about G/C unused variables and changing ajoerg2-14/+6
variable type to match the return type of fetch_read.
2009-08-06Drop PKGREVISION and bump to libfetch-2.24 instead. (in-tree package)tnn1-3/+2
2009-08-06Bump the PKGREVISION for ftp.c changetnn1-1/+2
2009-08-06Fix strict aliasing issue which GCC 4.4 complained about.tnn1-41/+40
While we know that "struct sockaddr_storage" has been engineered to alias to all the sockaddr structs, the compiler does not know about this. Thus, code like this may be unsafe to use: struct sockaddr_storage ss; struct sockaddr_in *sin = &ss; sin->sin_port = 0; /* dereferencing here breaks ISO C aliasing rules */ A workaround is to wrap the struct in a union, e.g: union anonymous { struct sockaddr_storage ss; struct sockaddr_in sin; } u; u.sin.sin_port = 0; -- Approved by: joerg
2009-06-22Correctly regen the cat page.joerg1-176/+484
2009-06-22Regen cat page. Helps Solaris.joerg1-484/+176
2009-05-19Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENTwiz1-2/+2
block). Uncomment some commented out LICENSE lines while here.
2009-04-09Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.joerg1-3/+1
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-13/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2009-03-16Improve markup.joerg1-3/+3
2009-03-10libfetch-2.23:joerg2-3/+6
Don't leak file descriptors when iterating local directories or checking local files for if-modified-since.
2009-03-05Add !__MINT__ to the HAVE_SA_LEN testabs1-2/+3
2009-03-05Like Linux, MiNT wants _GNU_SOURCE (for strptime)abs1-3/+3
2009-03-05Always define _REENTRANT to get gmtime_r prototype on Interix.joerg1-1/+4
2009-02-22Be nice to ancient NetBSD releases. From Hauke Fath.joerg3-9/+13
2009-02-09Suggest openssl option only if OpenSSL is builtin.joerg1-2/+8
2009-02-05Need sleep, unbreak: declare fetchRestartCalls as volatile, not extern.joerg1-2/+2
2009-02-05Really mark fetchRestartCalls as volatile.joerg1-2/+2
2009-02-05libfetch-2.22:joerg3-6/+6
Allow overriding fetchRestartCalls from signal handlers by making it volatile.
2009-02-05libfetch-2.21:joerg10-22/+104
Add support for conditional GET using the 'i' flag. Inspired by the HTTP support for the same feature in FreeBSD by Murray Stokely, but mostly rewritten and extended to work for all protocols.
2008-12-02Be a bit nicer to native linux use and define _GNU_SOURCE here as well.joerg1-1/+6
2008-11-04libfetch-2.20:joerg2-6/+5
Allow HTTP basic auth to be specified in the URL. Also allow : in the password while here.
2008-10-10libfetch-2.19:joerg2-4/+4
Fix a conditional in my quoting code to not be always true. This makes ~ be quoted as %7e as intended.
2008-10-08libfetch-2.18:joerg4-36/+52
Change FTP backend to use passive mode by default and fallback to active mode on syntax errors as discussed with and suggested by Luke Mewburn. Retire 'p' now and introduce 'a' flag to get the old default behavior.