Panu Matilainen
1a89593cd0
Clean up urlGetFile() return values
...
- Its callers only care about success vs failure, so only ever return
0 or -1 and take waitpid() errors into account too. As a side effect
shuts up a set-but-unused compiler warning too
2011-04-18 10:20:19 +03:00
Panu Matilainen
79301695ce
Remove double const in urlstring struct
2010-09-22 09:22:39 +03:00
Panu Matilainen
a9e039edb4
Fix up silly int/enum and type vs variable name mixups in urlPath()
2010-09-21 12:06:24 +03:00
Panu Matilainen
15c0c4e7a1
Fix "empty reply from server" curl-syndrome with url retrieval (RhBug:598988)
...
- We were adding a trailing newline to urlhelper command line passed
to execvp(), with the newline ending up in the URL passed to curl.
Many servers dont seem to mind the extra newline, but some do. Oh well...
2010-06-03 16:22:09 +03:00
Panu Matilainen
de5ec1af47
Lose long since unused url control structure and related functions
...
- these have been unused since rpm 4.6.0, and rpm is not in the
url business, rip.
2010-03-29 15:27:43 +03:00
Panu Matilainen
2c6120755c
Unconditionally include <sys/wait.h> where needed
...
- no point conditionalizing what we cant live without
2010-01-05 12:35:54 +02:00
Panu Matilainen
5c084f842a
Unconditionally include <netdb.h> where needed instead of system.h
...
- there's no fallback for missing netdb.h so there's little point
conditionalizing it
- avoid yet more system.h pollution
2010-01-05 11:26:14 +02:00
Panu Matilainen
f4b39519d3
Replace equal/not equal uses of str[n]cmp() with rstreq[n] in io code
2009-08-31 11:15:16 +03:00
Panu Matilainen
0114bb51dd
Dont treat filenames starting with - as stdin
2009-07-14 11:15:30 +03:00
Jindrich Novy
faaa0305f5
Return proper exit code when exec*() functions fail
...
- the correct exit code should be 127 accoring to bash(1),
we want to keep the same exit code behaviour as bash for rpm
2008-11-04 10:09:31 +01:00
Panu Matilainen
bd078a5811
Remove unused _url_debug
2008-07-04 16:09:47 +03:00
Panu Matilainen
769bc86d6d
Simplify url io a lot
...
- move urlhelper call to urlGetFile()
- have urlOpen() call urlGetFile() instead of going the other way around
and causing local copies and all sorts of craziness in the process
2008-04-11 11:18:25 +03:00
Panu Matilainen
e1e66978a1
Remove bogus consts from urlinfo_s structure
2008-03-24 20:44:48 +02:00
Panu Matilainen
a08ececd83
Log message adjustments
...
- dont waste translator time by having them translate obscure debug messages
- adjust some suspect looking logging levels
- mark some non-debug messages for translation where missing..
2008-03-07 09:47:51 +02:00
Panu Matilainen
8fde231cac
Mark bunch of misc. tables & such read-only in librpmio
2008-03-06 19:27:19 +02:00
Panu Matilainen
23777730c2
Use _constfree() for freeing urlinfo contents
2007-12-15 13:43:40 +02:00
Panu Matilainen
9ce13e09ef
Switch to <rpm/foo.h> style for public headers
...
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Panu Matilainen
9cbf0349b8
Use regular POSIX functions instead of "RPC" clones
...
- we only care about local files
2007-12-03 16:33:18 +02:00
Panu Matilainen
89527785bb
Move logging related macros rpmlog, adjust includes
2007-11-30 23:08:38 +02:00
Ralf Corsépius
abeea80a38
Use #include <x.h> syntax to include public headers.
2007-11-23 06:46:19 +01:00
Ralf Corsépius
d2384456f7
Add URLMAGIC, URLSANE.
...
Remove URLDBG (unused).
Include <assert.h>.
2007-10-30 02:56:34 +01:00
Ralf Corsépius
e36a2ac8da
Include "rpmmacro.h" instead of <rpmmacro.h>.
2007-10-28 06:32:05 +01:00
Ralf Corsépius
942da02937
Include "rpmmessages.h" instead of <rpmmessages.h>.
2007-10-28 06:17:49 +01:00
Panu Matilainen
3b7a6a5a95
Remove bunch of unnecessary rpmio_internal includes
2007-10-22 16:51:41 +03:00
Panu Matilainen
c52905d334
Replace all uses of RPMMESS_ERROR with RPMLOG_ERR
2007-10-09 14:49:02 +03:00
Panu Matilainen
9d9aa852ca
Replace all uses of RPMMESS_DEBUG with RPMLOG_DEBUG
2007-10-09 14:48:04 +03:00
Panu Matilainen
4ce9fc1a17
Replace all rpmMessage() uses with rpmlog()
2007-10-09 14:14:30 +03:00
Panu Matilainen
154a7f7603
Move _free() into system.h for now
...
- get rid of dozen _free() definitions
- get _free() out of public headers
2007-09-20 15:37:48 +03:00
Panu Matilainen
cc68353128
Remove url caching, don't need it...
2007-09-17 10:31:18 +03:00
Panu Matilainen
94e953382d
Remove transport-related items from urlinfo and uses
2007-09-17 09:32:25 +03:00
Panu Matilainen
9f325855d7
Rip out internal http and ftp transports.
2007-09-12 12:23:55 +03:00
Panu Matilainen
d36716c25c
Remove NEON and related hacks
2007-09-12 10:55:55 +03:00
Ralf Corsépius
e9f3a5c89d
Remove splint tags.
2007-09-11 19:23:32 +02:00
Ralf Corsépius
f982bbaa79
Remove splint tags.
2007-09-11 16:48:54 +02:00
Panu Matilainen
f49c8bc304
IPv4/6 and EPSV support by Arkadiusz Miskiewicz
2007-06-25 10:40:14 +03:00
Paul Nasrat
a13bfd1be5
Allow build without the neon library.
...
Resurrects old httpOpen code from rpm-4.1.1.
Building without neon means no webdav file uploads, though.
Michael Schroeder <mls@suse.de>
2007-02-16 16:27:54 +00:00
jbj
f5203aea8b
- add support for automagic pubkey retrieval using HKP.
...
CVS patchset: 7617
CVS date: 2004/11/28 21:14:41
2004-11-28 21:14:41 +00:00
jbj
e5370f96a4
Drill many neon hooks.
...
CVS patchset: 7552
CVS date: 2004/11/07 18:49:08
2004-11-07 18:49:08 +00:00
jbj
368da1cf26
Store server capabilities and lockstore in urlinfo.
...
Attach urlinfo to fetch context prior to ripping ne_parse_uri.
Substitute /u->service/u->scheme/ everywhere to conform with modern usage.
Splint clean.
CVS patchset: 7543
CVS date: 2004/11/05 16:00:31
2004-11-05 16:00:31 +00:00
jbj
afeddbf68d
Stub in URL_IS_HTTPS everywhere.
...
CVS patchset: 7536
CVS date: 2004/11/04 13:29:11
2004-11-04 13:29:11 +00:00
jbj
58c9db0b19
Spint fiddles.
...
CVS patchset: 7184
CVS date: 2004/03/23 07:18:55
2004-03-23 07:18:55 +00:00
jbj
9c5529608e
- don't use error string after gzclose (Dmitry V. Levin).
...
Spliddles for rpmio, drill h_errno all the way through.
CVS patchset: 6826
CVS date: 2003/05/08 20:39:29
2003-05-08 20:39:29 +00:00
jbj
241fad1287
Propagate splint-3.0.1.7 close(2) internalState annotation throughout.
...
CVS patchset: 5542
CVS date: 2002/07/08 14:21:26
2002-07-08 14:21:26 +00:00
jbj
e5fb770e7d
Add boundsread annotations throughout, enable +bounds checking.
...
Start narrowing the scope of bounds annotations by adding more annotations.
CVS patchset: 5537
CVS date: 2002/07/02 23:54:35
2002-07-02 23:54:35 +00:00
jbj
13d177beb2
Add boundswrite annotations everywhere.
...
CVS patchset: 5522
CVS date: 2002/06/23 19:47:08
2002-06-23 19:47:08 +00:00
jbj
49658e0fff
Annotate incondefs in source code.
...
CVS patchset: 5509
CVS date: 2002/06/19 18:52:46
2002-06-19 18:52:46 +00:00
jbj
b463db44dc
- use build time to choose one of multiple alternative suggestions.
...
- add --nosuggests to disable suggested resolutions.
- splint fiddles.
CVS patchset: 5406
CVS date: 2002/04/14 21:48:44
2002-04-14 21:48:44 +00:00
jbj
c74fa24965
- missing key(s) on keyring when verifying a signature is now an error.
...
- remove dependency whiteout.
- splint fiddles.
CVS patchset: 5255
CVS date: 2002/01/18 22:51:30
2002-01-18 22:51:30 +00:00
jbj
21a35690b3
- commit to using rpmDepSet and TFI_t, not header.
...
- lclint rpmio fiddles.
CVS patchset: 5177
CVS date: 2001/11/12 20:51:05
2001-11-12 20:51:05 +00:00
jbj
d57a29baac
Converging on lclint-3.0.17 strict level.
...
CVS patchset: 5118
CVS date: 2001/10/17 16:43:36
2001-10-17 16:43:36 +00:00