summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-01-25Don't reset target when reading included rpmrc's.Panu Matilainen1-0/+2
Doesn't seem to break anything and fixes rhbz#232429 AFAICT...
2008-01-25Bandaid patch for truncated error message in russian (mdvbz#31680)Panu Matilainen1-1/+1
Just up the stupid static reservation "high enuff" for now. asprintf() would be nice here but it's not at all portable, revisit later.
2008-01-25Permit conflicting ghost filesPanu Matilainen1-0/+3
Patch from Pascal Rigaux
2008-01-19Add support for Geode CPU (rhbz#428979)Panu Matilainen2-1/+29
Patch from Dennis Gilmore
2008-01-10And *really* skip the leading % in --define, double duh :)Panu Matilainen1-3/+4
2008-01-10Fix thinko in macroname underscore conversion, duhPanu Matilainen1-3/+3
2008-01-09Implementation of triggerprein scriptlets.Panu Matilainen2-4/+12
Ported from rpm5.org work of Jeff Johnson to 4.4.x by Pascal Rigaux, further adopted to fit HEAD...
2008-01-09Avoid access(2) quirks querying symlinks, lstat(2) instead (#60288)Panu Matilainen1-17/+10
Ported from rpm5.org work of Jeff Johnson
2008-01-09Handle spaces in file path arguments correctly (#217258)Panu Matilainen2-2/+7
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-09Convert '-' to '_' within --define macro names (#124995)Panu Matilainen1-3/+14
Patch derived from rpm5.org of Jeff Johnson
2008-01-07Set a default 0022 umask value always (#83006)Panu Matilainen1-0/+4
Patch derived from rpm5.org work of Jeff Johnson
2008-01-07Don't unlink non-temporary file in FSM_UNDO (rhbz#223931)Panu Matilainen2-5/+7
Ported from rpm5.org work of Jeff Johnson.
2008-01-02Revert rpmfi bits from 01cd03ea8f8aPanu Matilainen1-3/+3
- nasty breakage from new signedness mismatches..
2008-01-02Signedness consistency in rpmfi interface vs internal structuresPanu Matilainen2-24/+24
2008-01-02Avoid compressFilelist() stack overflow in pathological casesPanu Matilainen1-3/+6
- allocate dirNames etc arrays on heap, not stack - the arrays can be rather large and alloca isn't very friendly when it fails...
2008-01-02Assorted int -> size_t corrections for string lengthsPanu Matilainen8-24/+25
2008-01-02Use size_t, not int for header format padding argsPanu Matilainen1-8/+8
2007-12-19Add rpm_data_t (and _constdata_t) for header data, use everywherePanu Matilainen17-151/+151
- consistent, easy to grep for and change... - bogus consts removed where spotted
2007-12-19Const-pedantry here and there...Panu Matilainen2-5/+6
2007-12-19Const pedantryPanu Matilainen1-8/+10
2007-12-31tgi doesnt need fts private includePanu Matilainen1-2/+1
2007-12-19Hum, NSS needs to be shut down tooPanu Matilainen1-0/+4
- some ~80 bytes are still leaked apparently from somewhere within nss/nspr
2007-12-19Ordering fix (don't use RPMSENSE_PREREQ) from Pascal RigauxPanu Matilainen1-1/+1
2007-12-18Drop bogus const from rpmReadPackageManifest argvptrPanu Matilainen2-4/+4
- it's malloced and needs freeing by the caller..
2007-12-18One leftover reloc constfree..Panu Matilainen1-1/+1
2007-12-18Remove bunch of bogus cli-related consts...Panu Matilainen1-4/+4
2007-12-18Remove bogus const from rpmInstallSource*() parametersPanu Matilainen4-9/+9
- spec and cookie are malloced and need to be freed by caller - unconst various other rpmQVK arguments & friends, no api exists to free them so caller needs to handle anyway
2007-12-18Use constfree for rpmts suggestionsPanu Matilainen1-1/+1
- goes down to rpmal returning fnpykey which is declared as const.. check this later
2007-12-18Remove bogus const from rpmGlob argv return typePanu Matilainen4-4/+4
- it's malloced and must be freed by caller
2007-12-18Make fsm failedFile non-const like it really isPanu Matilainen3-12/+14
- callers need to free it so const is wrong - cast away the hardlink-hackery in fsm instead
2007-12-18Drop bogus const from zapRelation returnPanu Matilainen1-3/+3
- the retval is malloced from rpmdsNewDNEVR() and must be freed by the caller
2007-12-18Drop bogus const from rpmts rootDir + curDirPanu Matilainen1-2/+2
2007-12-18Use constfree for fsm path, opath for nowPanu Matilainen1-19/+19
- neither should really be const but they sometimes point to real const variables, sometimes not.. needs careful review
2007-12-18Drop const from fs mountpoint, contained within fsPanu Matilainen1-1/+1
2007-12-17Use constfree for rpmte internals for nowPanu Matilainen1-7/+7
- the internals are exposed all over the tree...
2007-12-17Use constfree for rpmfi internals for nowPanu Matilainen1-15/+15
- the internals are exposed all over the tree...
2007-12-17Remove const from rpmal dirInfo dirnamePanu Matilainen1-2/+4
- add comments wrt needle dirName - those are actual const pointers to within rpmfi, must not free
2007-12-17Use constfree for psm failedFile for nowPanu Matilainen1-3/+7
- failedFile is malloced by fsm, but removing the const from fsm gets a bit hairy as failed it's not always malloced (see changeset 4062:02b0c237b675) so we'd have const-disabling casts instead of freeing consts...
2007-12-17Unconst psm pkgURL and rpmio_flags membersPanu Matilainen1-2/+2
- fully contained within psm
2007-12-17Make psm opaque, add minimal methods to cover internal needsPanu Matilainen4-53/+104
2007-12-17Drop bogus const from dnlFreeIterator() paramPanu Matilainen1-1/+1
2007-12-17Drop bogus const from fsmFsPath() return typePanu Matilainen1-6/+5
- path is malloced and caller needs to free - additionally use size_t, not int for string size
2007-12-17transaction.c doesn't need fsm.h, rpmfi_internal doesPanu Matilainen2-1/+1
2007-12-17Stick cpioMapFlags to fsm.h, they're only used by fsm.cPanu Matilainen2-20/+20
- allows FSM* typedefs to move to where they belong
2007-12-17Hide fsmIterator_s struct details, not needed outside fsm.cPanu Matilainen2-11/+11
2007-12-17Stuff hardLink_s inside fsm.c, add pointer typedef to fsm.hPanu Matilainen2-17/+19
- nothing outside fsm.c needs except for the declaration in fsm_s
2007-12-17badDeps is encapsulated within depends, doesn't need constPanu Matilainen1-11/+2
- remove ancient reference code
2007-12-16pgpReadPkts returns malloced memory, unconstifyPanu Matilainen1-1/+1
2007-12-16Bogus const in temporary variablesPanu Matilainen1-2/+2
2007-12-16Unconstify rpmrc internal tablesPanu Matilainen1-13/+13
- not exposed outside rpmrc, "protection" buys nothing