summaryrefslogtreecommitdiff
path: root/rpmio
AgeCommit message (Collapse)AuthorFilesLines
2008-04-19Simplify rpmGlob() a bitPanu Matilainen1-23/+7
- use argv*() routines instead of manual argv manipulation
2008-04-19Dynamically allocate buffers in rpmGetPath()Panu Matilainen1-14/+8
- avoid unbounded copying to static sized buffer - use rpmExpand() instead of expandMacros() which requires preallocated buffer when we've no idea of expanded size
2008-04-18Avoid entirely silly rpmio FD_t usePanu Matilainen1-6/+5
- rdcl() converts to FILE internally anyway, might as well use fopen() to begin with...
2008-04-18Remove unnecessary xstrdup() of dynamically allocated bufferPanu Matilainen1-3/+2
- leftover from when target buffer was static...
2008-04-18Cosmetics: group operations more logically...Panu Matilainen1-2/+3
2008-04-18Simplify macro option + argument processingPanu Matilainen1-102/+69
- eliminate ninja-voodoo pointer-hackery parsing, replace argvSplit() + argvJoin() and friends - eliminate static sized buffers from the processing
2008-04-18Add argvJoin() for combining an argv array into a stringPanu Matilainen2-0/+20
2008-04-17Eliminate splitString() and freeSplitString()Panu Matilainen2-58/+0
- use ARGV_t instead, it does the same and more...
2008-04-17Add rstrlcpy() string helper functionPanu Matilainen2-0/+40
- adopted from strlcpy() function of OpenBSD originally developed by Todd C. Miller <Todd.Miller@courtesan.com>
2008-04-17More accurate filtering of .rpmnew etc when reading macrosPanu Matilainen1-3/+3
- strstr() can give false positives, use rpmFileHasSuffix() instead
2008-04-17Have gcc check for NULL terminated arglist in rstrscatPanu Matilainen1-1/+1
2008-04-17Use sizeof() instead of direct element count in rpmluaGetVar()Jindrich Novy1-1/+1
2008-04-17Introduce rstrscat()Jindrich Novy2-2/+59
- concatenates NULL terminated strings to newly (re)allocated memory - purpose is to prevent overflows caused by writing unknown-sized stuff to static arrays
2008-04-16Convert to Lua 5.1 library loading stylePanu Matilainen1-15/+10
- luaL_openlibs() to pull in all standard libs - local extensions need to be registered by calling through Lua
2008-04-16Start phasing out internal copy of LuaPanu Matilainen1-0/+2
- don't build internal copy of Lua - move 3rd party extensions (posix and rexlib) to toplevel luaext/ directory, built by default (unless --without-lua specified) - auto*foo checks for external Lua - minimal tweaks to lposix.c and rpmlua.c to get them build with Lua 5.1
2008-04-15Doxygen parameter name mismatchPanu Matilainen1-1/+1
2008-04-15Plug a memleak in pgpArmorWrap()Panu Matilainen1-0/+1
2008-04-15Introduce rstrcat()Jindrich Novy2-0/+40
2008-04-14Add argvAddNum() for adding integers to ARGV_t arraysPanu Matilainen2-0/+19
2008-04-14Add argvNew() to create an empty argv arrayPanu Matilainen2-0/+13
- yes it's silly ;)
2008-04-14Prevent buffer overflow in readKeys()Jindrich Novy1-2/+3
2008-04-11Simplify url io a lotPanu Matilainen2-79/+34
- 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-11Rewrite rpmMkTempFile() for sanityPanu Matilainen2-89/+28
- Actually use mkstemp() for creating the temp file and return a FD_t dupped from the file descriptor returned by mkstemp(). - Simplify the interface while at it. - Change callers for the new interface. - Yes we now require mkstemp() to work, mkstemp() is in POSIX.1-2001 and this is year 2008...
2008-04-08Rewrite pgpArmorWrap(), the former one was insecure/hackishJindrich Novy1-30/+12
2008-04-08Eliminate four copy-paste versions of nibble(), stick to rpmstring.hPanu Matilainen1-0/+16
- the one in signature.c wasn't even used...
2008-04-07Eliminate several copy-paste hex converters, use pgpHexStr() insteadPanu Matilainen1-10/+1
2008-04-07Uh, return allocated pointer, not the end of string...Panu Matilainen1-2/+3
2008-04-07Remove static print buffer from pgpMpiStr(), return malloc'd data insteadPanu Matilainen2-9/+18
- convert callers - only rpmpgp.c internal needs, move it there and make static?
2008-04-07Merge pgpHexCvt() into pgpHexPrt(), removing it from public headersPanu Matilainen2-22/+8
2008-04-07Minimally convert all pgpHexCvt() users to use pgpHexStr() insteadPanu Matilainen1-3/+3
2008-04-07Remove static print buffer from pgpHexStr, return malloc'ed memory insteadPanu Matilainen2-11/+13
- inlined to get xmalloc() from system.h for consistent malloc fail behavior - convert callers for new behavior, apart from some debug fprintf()'s
2008-04-07argvPrint() doesn't modify argv, make it constPanu Matilainen2-3/+3
2008-04-07Add ARGI_const_t, use where appropriatePanu Matilainen2-4/+5
2008-04-07ARGV_t const pendantryPanu Matilainen3-10/+11
- 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-07Remove ARGstr_t typedef, it serves no purposePanu Matilainen2-7/+6
- argv strings are just regular strings, the structure is what's special
2008-04-07Remove bogus const from ARGV_tPanu Matilainen1-1/+1
2008-04-04Missing decompression arguments for bzip in uncompress macroPanu Matilainen1-1/+1
2008-04-04Rename currentDirectory() to rpmGetCwd() and move to librpmioPanu Matilainen2-0/+21
2008-04-03Shut up a few silly compiler warnings that have crept inPanu Matilainen1-0/+1
- missing cast in python header subscript - (false) warning about uninitialized variable, unused variable in rpmfc - missing include in rpmio
2008-04-01Fix off-by one in urlOpen()Jindrich Novy1-2/+1
- the former implementation didn't take the ending '\0' into account
2008-03-31Dead code removal (macro stuff)Panu Matilainen1-17/+0
2008-03-24Remove bogus consts from pgpDigParams_s structurePanu Matilainen2-9/+9
2008-03-24Remove bogus consts from urlinfo_s structurePanu Matilainen2-16/+16
2008-03-19Remove bunch of double consts. What have I've been thinking?Panu Matilainen2-20/+20
2008-03-18Erm, off-by-one in rasprintf()Panu Matilainen1-1/+1
- should probably change the comment to "simple, stupid and buggy" ;)
2008-03-18Bump up sonames, we're not exactly ABI compatible with 4.4 anymore..Panu Matilainen1-1/+1
2008-03-18Add custom asprintf() clone to rpmstringPanu Matilainen2-0/+38
2008-03-18Minimal namespacing for locale-insensitive x*() string functionsPanu Matilainen3-29/+29
2008-03-18More xstr[n]casecmp to rpmstring along the other string-stuff...Panu Matilainen3-49/+42
2008-03-17Add missing popt includePanu Matilainen1-0/+2