Panu Matilainen
c29adcee80
ARGV_t const pendantry
...
- const on typedef'ed ARGV_t doesn't mean a thing, add a new,
(exec* compatible) ARGV_const_t and use where appropriate consistently in
argv.h, rpmcli.h etc
- popt's argv const is the wrong way around for exec() family, add explicit
ARGV_t casts on popGetArgs() uses where needed
- compiler silence, aaahh...
2008-04-07 12:19:58 +03:00
Panu Matilainen
d728ec28dc
Remove ARGstr_t typedef, it serves no purpose
...
- argv strings are just regular strings, the structure is what's special
2008-04-07 12:19:41 +03:00
Panu Matilainen
a5533d9604
Remove bogus const from ARGV_t
2008-04-07 12:19:33 +03:00
Panu Matilainen
3c1126b2a5
Missing decompression arguments for bzip in uncompress macro
2008-04-04 15:52:52 +03:00
Panu Matilainen
a5a3cfc3ed
Rename currentDirectory() to rpmGetCwd() and move to librpmio
2008-04-04 09:53:17 +03:00
Panu Matilainen
999248ab03
Shut up a few silly compiler warnings that have crept in
...
- missing cast in python header subscript
- (false) warning about uninitialized variable, unused variable in rpmfc
- missing include in rpmio
2008-04-03 08:04:22 +03:00
Jindrich Novy
38b81493b0
Fix off-by one in urlOpen()
...
- the former implementation didn't take the ending '\0' into account
2008-04-01 16:40:15 +02:00
Panu Matilainen
7ddab3ab8d
Dead code removal (macro stuff)
2008-03-31 10:44:23 +03:00
Panu Matilainen
9a4a5c9ef8
Remove bogus consts from pgpDigParams_s structure
2008-03-24 21:05:05 +02:00
Panu Matilainen
e1e66978a1
Remove bogus consts from urlinfo_s structure
2008-03-24 20:44:48 +02:00
Panu Matilainen
53bc909971
Remove bunch of double consts. What have I've been thinking?
2008-03-19 09:30:33 +02:00
Panu Matilainen
5c7cccd3b6
Erm, off-by-one in rasprintf()
...
- should probably change the comment to "simple, stupid and buggy" ;)
2008-03-18 13:22:15 +02:00
Panu Matilainen
d07bcfece1
Bump up sonames, we're not exactly ABI compatible with 4.4 anymore..
2008-03-18 10:28:57 +02:00
Panu Matilainen
053cf9a25e
Add custom asprintf() clone to rpmstring
2008-03-18 10:17:03 +02:00
Panu Matilainen
c908277be2
Minimal namespacing for locale-insensitive x*() string functions
2008-03-18 09:10:13 +02:00
Panu Matilainen
9df54a8622
More xstr[n]casecmp to rpmstring along the other string-stuff...
2008-03-18 08:55:05 +02:00
Panu Matilainen
5dca5fac8f
Add missing popt include
2008-03-17 15:48:25 +02:00
Panu Matilainen
f1f6510cee
Remove rpmio internal copy of poptParseArgvString() & friends
...
- the old included version segfaults with funky input and whatnot...
- link rpmio to real popt instead
2008-03-12 15:34:49 +02:00
Panu Matilainen
501197e5ef
Stop insecurely covering up for lack of snprintf and vsnprintf
...
- we require C99 anyway
- snprintf is used unconditionally all around the tree
- if absolutely needed for portability, having insecure wrappers littered
over the source is not the best way
2008-03-07 13:34:20 +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
17fc6663ef
Make rpmio vectors read-only
2008-03-06 19:25:46 +02:00
Panu Matilainen
5b32005575
Further read-only tables in rpmpgp..
2008-03-06 19:24:56 +02:00
Panu Matilainen
84ff15177d
Mark various pgp value tables read-only as they should be
2008-03-06 18:56:38 +02:00
Panu Matilainen
05129f83dc
Make bunch of macro internal variables static
2008-02-26 22:24:28 +02:00
Panu Matilainen
b010266b0e
Remove hidden --nolibio cli switch, avoid exporting noLibio
2008-02-26 22:04:17 +02:00
Panu Matilainen
2579e086c2
Un-inline fd*Digest()
...
- avoid leaking nss + digest internals all over the place
2008-02-26 21:46:38 +02:00
Panu Matilainen
47a1e05150
Make the rest of rpmio vectors static inside rpmio
...
- no external needs, gets them out of exported library symbols
2008-02-26 21:02:21 +02:00
Panu Matilainen
edc6b13d19
Remove the last remains of unused and unnecesary rpmio rpc vectors
2008-02-26 20:53:38 +02:00
Panu Matilainen
2b39ddc25d
Enable variadic checks for rpmExpand(), rpmlog() and rpmGetPath()
...
Suggested by Michal Marek
2008-02-25 11:03:38 +02:00
Panu Matilainen
c46876daa4
Add new header for collecting utility macros
...
- atm consists of portability wrappers to various gcc extensions like
__attribute__() to provide additional warnings and checks
- copied from glib to avoid an extra build dependency just for the silly
macros, renamed to avoid namespace clashing
2008-02-25 11:02:07 +02:00
Panu Matilainen
1df890dd02
Make check-programs build again, assorted type-fiddlings..
2008-02-04 12:00:30 +02:00
Panu Matilainen
e886043a10
Add rpm_off_t type for file size types, use where spotted
...
- preliminaries for bumping up the max size, use rpm-specific type
as off_t size varies, header data needs fixed size
2008-02-04 11:27:00 +02:00
Panu Matilainen
a23502798f
Avoid silly fixed size buffer in urlhelper
2008-02-01 13:25:18 +02:00
Panu Matilainen
cc69dd20b8
Allocate macro buffers dynamically
...
- avoids some entirely needless overflow cases
- somewhat similarly to rpm5.org but use heap instead of stack
2008-02-01 13:00:40 +02:00
Panu Matilainen
56405587f4
Allocate various macro buffers from heap not stack
2008-02-01 12:11:03 +02:00
Panu Matilainen
54ab76019e
Define + use MACROBUFSIZ for macro expansion buffer size
...
- double the buffer size while at it...
2008-02-01 11:36:13 +02:00
Panu Matilainen
d3d60512bd
Macro shell expansion fixes (rhbz#431009)
2008-02-01 11:09:13 +02:00
Panu Matilainen
eb5dc35c19
Include spring-cleaning
...
- put some consistency into include ordering
- everything (apart from bits missed ;) is now ordered like this
1. "system.h"
2. other system includes
3. rpm public headers
4. rpm private headers
5. "debug.h"
2008-01-30 17:05:29 +02:00
Panu Matilainen
90fbda7103
Move FD_t to rpmtypes.h, used all over ..
2008-01-30 12:20:59 +02:00
Panu Matilainen
e39b131750
More missing system includes for size_t & friends
2008-01-28 13:43:32 +02:00
Panu Matilainen
80ca9f368f
Add missing system includes to rpmmacro.h
2008-01-28 11:45:38 +02:00
Panu Matilainen
95b03441cc
Rename isCompressed() -> rpmFileIsCompressed() for namespacing
2008-01-27 16:39:40 +02:00
Panu Matilainen
8e2965886f
Couple of missing doxygen groupings
2008-01-27 16:13:47 +02:00
Panu Matilainen
a0a972702a
Detect lzma magic if it exists, otherwise dumb check for .lzma filename
...
- Newer lzma-utils make a magic header in archives, current stable versions
don't. Guessing based on common compression flags used by current lzma
versions is feeble and futile...
2008-01-27 16:11:46 +02:00
Panu Matilainen
f0f392cce6
Helper function for checking given suffix on path
2008-01-27 16:00:06 +02:00
Panu Matilainen
eec03952be
Make uncompress macros match reality (_ vs __ prefix)
2008-01-23 07:56:51 +02:00
Panu Matilainen
76d8c76836
pgpHexStr() returns pointer to static buffer, return const char *
2008-01-10 13:35:03 +02:00
Panu Matilainen
a97100ba1d
Handle spaces in file path arguments correctly ( #217258 )
...
Ported from rpm5.org work of Jeff Johnson with some differences:
- place into rpmfileutil instead of rpmgi as it's more generic than just rpmgi
- rename rpmgiEscapeSpaces -> rpmEscapeSpaces
- return char *, not const char * as the return string must be freed by caller
2008-01-09 10:21:01 +02:00
Panu Matilainen
ce9ba5a7da
Last 8 bytes of RSA modulus is keyid for V3 pubkeys ( #205080 )
...
- ported from rpm5.org work of Jeff Johnson
- minimal fix suitable for 4.4.2.x too, full rpm5.org changes require
api changes which would be ok for HEAD but that's a bigger task...
2008-01-09 09:22:31 +02:00