Panu Matilainen
02939c15fa
More accurate filtering of .rpmnew etc when reading macros
...
- strstr() can give false positives, use rpmFileHasSuffix() instead
2008-04-17 17:33:30 +03:00
Panu Matilainen
3c1126b2a5
Missing decompression arguments for bzip in uncompress macro
2008-04-04 15:52:52 +03:00
Panu Matilainen
7ddab3ab8d
Dead code removal (macro stuff)
2008-03-31 10:44:23 +03:00
Panu Matilainen
c908277be2
Minimal namespacing for locale-insensitive x*() string functions
2008-03-18 09:10:13 +02:00
Panu Matilainen
05129f83dc
Make bunch of macro internal variables static
2008-02-26 22:24:28 +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
95b03441cc
Rename isCompressed() -> rpmFileIsCompressed() for namespacing
2008-01-27 16:39:40 +02:00
Panu Matilainen
eec03952be
Make uncompress macros match reality (_ vs __ prefix)
2008-01-23 07:56:51 +02:00
Panu Matilainen
8e00018c88
Fix some const issues in macros
2007-12-19 12:49:52 +02:00
Panu Matilainen
78ad426f04
Remove bogus const from rpmGlob argv return type
...
- it's malloced and must be freed by caller
2007-12-18 10:17:18 +02:00
Panu Matilainen
c41f61369e
Unconstify macro contents, fully contained within macro module
2007-12-16 21:28:37 +02:00
Panu Matilainen
f5a712db5b
Remove bogus consts..
2007-12-14 15:50:17 +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
89527785bb
Move logging related macros rpmlog, adjust includes
2007-11-30 23:08:38 +02:00
Ralf Corsépius
8ef0ca213f
Expand private include file names to be relative to $(top_srcdir)
2007-11-23 11:41:29 +01:00
Panu Matilainen
7b2a9b3c24
Move rpmGlob() from macros to rpmfileutil.h
...
- macros is all just macros now
- internal copy of popt stuff needs to go...
2007-11-23 10:27:29 +02:00
Panu Matilainen
2c6905dd9f
Move rpmGetPath and rpmGenPath to rpmfileutil.h
2007-11-23 10:20:19 +02:00
Panu Matilainen
178e32a0ba
Move rpmCleanPath from macros to rpmfileutil.h
2007-11-23 10:10:19 +02:00
Panu Matilainen
ff77bfa2a1
Move file compression stuff from rpmmacro.h to rpmfileutil.h
2007-11-23 10:05:49 +02:00
Panu Matilainen
4ad615daf5
Move the xstr*() string variants from rpmio.h to rpmstring.h
2007-11-23 08:32:08 +02:00
Ralf Corsépius
abeea80a38
Use #include <x.h> syntax to include public headers.
2007-11-23 06:46:19 +01:00
Panu Matilainen
17ef8a3082
Lose rpmerr.h for good
2007-11-19 16:32:15 +02:00
Panu Matilainen
43c5de66fb
Replace all RPMERR_* etc uses with corresponding RPMLOG_* levels
2007-11-19 16:25:24 +02:00
Panu Matilainen
0781adb1cb
Eliminate macro struct internals from the API
2007-11-02 10:40:45 +02:00
Panu Matilainen
bdd3cd3ed6
Macros don't need rpmio_internal
2007-10-29 12:55:43 +02:00
Panu Matilainen
46e669f06e
Remove bunch of long-dead macro debug stuff
2007-10-29 09:30:45 +02:00
Ralf Corsépius
9735f83012
Include "rpmio_internal.h" instead of <rpmio_internal.h>.
2007-10-28 06:43:19 +01:00
Ralf Corsépius
d7c7203182
Include "rpmerr.h" instead of <rpmerr.h>.
2007-10-28 06:43:10 +01:00
Ralf Corsépius
b1f8da9252
Include "rpmlua.h" instead of <rpmlua.h>.
2007-10-28 06:36:11 +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
Ralf Corsépius
272d591973
Add support for lzma compressed "Sources".
2007-10-10 08:39:01 +02:00
Panu Matilainen
d709195c3a
Replace all rpmError() uses with rpmlog()
2007-10-09 14:06:06 +03:00
Ralf Corsépius
6ea5c0023f
Use enums instead of ints for processing isCompressed ret-val.
2007-10-09 10:02:49 +02:00
Panu Matilainen
8c7b929a14
Never glob non-local paths in rpmGlob()
2007-10-01 14:29:10 +03:00
Panu Matilainen
83f0947586
Rename MacroContext and -Entry to rpmMacro* for namespacing
2007-09-20 15:52:03 +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
Ralf Corsépius
8fa3c5becf
Remove splint remnants.
2007-09-20 07:36:41 +02: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
Ralf Corsépius
bc5bbd543f
Remove __LCLINT__-ifdef'ed blocks.
2007-09-03 13:29:05 +02:00
Panu Matilainen
8d0ad625b9
Don't read *.rpmnew etc macro files
2007-08-30 13:02:12 +03:00
Panu Matilainen
de9061b214
Fix monday morning thinkos wrt macro buffer changes.
...
The expanded size is of course not known beforehand.. check for size
before copying instead.
2007-08-27 11:01:39 +03:00
Panu Matilainen
40d25ee3ea
Fix potential buffer overflow in macro primitive execution
...
Use dynamic buffer, we know the needed size here...
2007-08-27 09:55:42 +03:00
Panu Matilainen
ad7c8e98c9
Fix potential buffer overflow in macro findEntry()
...
Avoid static buffer, we know the size...
2007-08-27 09:51:52 +03:00
Panu Matilainen
0e74bc98be
Fix potential buffer overflow by using dynamic buffer size.
2007-08-27 09:48:00 +03:00