Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-01-04 | Use MAP_FAILED instead of hardwired (void *)-1 | Panu Matilainen | 1 | -4/+4 | |
2010-01-04 | Re-enable mmap test in configure & fix the code build again | Panu Matilainen | 1 | -0/+1 | |
- this stuff has been disabled for years, lets see what breaks... | |||||
2010-01-04 | Require lchown() and remove ancient broken chown kludgery | Panu Matilainen | 1 | -2/+0 | |
- lchown() is POSIX 2001, we dont care about older / nonconformant stuff | |||||
2009-12-23 | Include <utime.h> where needed instead of system.h | Panu Matilainen | 1 | -0/+1 | |
- include unconditionally as we dont try to deal with utime() missing | |||||
2009-12-16 | Avoid mucking with fsm->rdbuf in fsmRmdirs() and fsmMkdirs() | Panu Matilainen | 1 | -6/+2 | |
- we already calculate the string length, just use a variable local array | |||||
2009-12-16 | Remove now unnecessary const-avoidance construct | Panu Matilainen | 1 | -5/+2 | |
2009-12-16 | Const-correctness on fsmRmdirs() and fsmMkdirs() | Panu Matilainen | 1 | -12/+11 | |
- both functions need to copy the data anyway as they modify, just use a helper variable to cleanly avoid the const strings from iterator | |||||
2009-12-16 | Remove bogus const from fsm [o]path members and use of _constfree() | Panu Matilainen | 1 | -43/+38 | |
- in reality the paths point to allocated memory at all times | |||||
2009-12-16 | Simplify fsmFsPath() | Panu Matilainen | 1 | -13/+6 | |
2009-12-15 | Kill of ancient unused kludgery over buggy packages | Panu Matilainen | 1 | -6/+0 | |
2009-12-15 | Kill off stillborn fsm threading stuff | Panu Matilainen | 1 | -10/+0 | |
2009-12-15 | Kill off stillborn "not yet" code from 2001 | Panu Matilainen | 1 | -33/+0 | |
2009-10-14 | Remove cpio stuff from FD_t | Panu Matilainen | 1 | -12/+9 | |
- only the FSM cares about cpio position, move it there - there's only ever one fd active inside FSM, no need to track it per-fd | |||||
2009-08-31 | Replace equal/not equal uses of str[n]cmp() with rstreq[n] in fsm & psm | Panu Matilainen | 1 | -8/+8 | |
2009-07-23 | Kill off lclint remnants everywhere | Panu Matilainen | 1 | -1/+0 | |
- remove ancient and likely irrelevant LCL comments and bogus NULL checks | |||||
2009-06-12 | Add parentheses (as kindly suggested by new gcc...) | Panu Matilainen | 1 | -1/+1 | |
2009-04-03 | Make sure installed files have state (rhbz#492947) | Panu Matilainen | 1 | -2/+0 | |
- rpmfsSetState() doesn't get called for skipped files like %ghost and %config(noreplace), causing incorrect file state ("no state") getting recorded in rpmdb, leading to inapproriate removal/rename on erase, ick - For TR_ADDED, always default file states to RPMFILE_STATE_NORMAL, fsm changes it as necessary for skipped colors and such. Lazy alloc on rpmfsSetState() is not correct as rpmfsSetState() might not get called at all. - originally broken by commit 8d6c4b8c95b59f5a71d90c582c2e98f5c7ed7b9d | |||||
2009-02-27 | Add md5->filedigest aliases (rhbz#487597) | Jindrich Novy | 1 | -5/+5 | |
- add %verify(nofiledigest) as %verify(nomd5) file attribute alias - reference digests as digests not checksums - make old md5 related symbols obsolete and use newer reference - update man page accordingly | |||||
2009-01-08 | Make rpm_tid_t unsigned type to shut up remaining compiler warnings | Panu Matilainen | 1 | -1/+1 | |
2008-12-11 | Add public rpmfi function for retrieving digest algorithm of the set | Panu Matilainen | 1 | -1/+1 | |
- the information is already available through rpmfiFDigest() but that requires valid iteration index to be active, whereas the digest algo is per info set, not per file | |||||
2008-12-11 | Avoid direct access to rpmfi directory indexes | Panu Matilainen | 1 | -3/+4 | |
2008-12-11 | More rpmfi direct access avoidance in fsm | Panu Matilainen | 1 | -4/+6 | |
- the remaining bits need further accessors / refactoring | |||||
2008-12-11 | Avoid most of direct rpmfi accesses in dnlInitIterator() | Panu Matilainen | 1 | -9/+10 | |
- need to add an accessor function for fi->dil info | |||||
2008-12-11 | Avoid bunch of now unnecessary direct accesses to rpmfi struct in fsm | Panu Matilainen | 1 | -7/+6 | |
2008-12-11 | Use indexed accessors instead of direct rpmfi struct access in fsmMapFCaps() | Panu Matilainen | 1 | -3/+3 | |
- also rpmts is unused here, remove | |||||
2008-12-11 | Avoid bunch of unnecessary direct fi-> accesses for file and dir count | Panu Matilainen | 1 | -10/+13 | |
2008-12-11 | Use indexed rpmfi accessors instead of fiddling with iterator index | Panu Matilainen | 1 | -11/+10 | |
- saving and restoring rpmfi iterator index has unwanted side-effects - reverts brokenness from 6fd987b7291fb1306297c193f4ab01bf6cd02618 | |||||
2008-12-10 | Move ->actions from rpmfi to rpmfs | Florian Festi | 1 | -4/+5 | |
and adjust all code using it also "revert" a4e345455d817ce6c56940600d652ee3ae0aa5d5 "Move file action calculations to rpmfiNew() where possible" | |||||
2008-12-10 | Move the run time part of fstates from rpmfi to rpmfs. Keep fstates in rpmfi ↵ | Florian Festi | 1 | -4/+6 | |
as long as it is a real tag read from the rpmdb. | |||||
2008-11-27 | Eliminate silly rpmfiTypeString() | Panu Matilainen | 1 | -4/+13 | |
- Transaction elements are install/erase type, not file info sets, rename to rpmteTypeString(). It's only "useful" for fsm internal debugging messages, hide it there. | |||||
2008-11-27 | Eliminate fi->te use in fsm | Panu Matilainen | 1 | -11/+19 | |
2008-11-27 | Pass rpmte to fsmSetup() | Panu Matilainen | 1 | -3/+6 | |
- fsm needs the transaction element for progress notification and element type anyway | |||||
2008-11-27 | Remove bogus consts from fsmSetup() args | Panu Matilainen | 1 | -1/+1 | |
- rpmfi is messed with (at least file actions) - const on typedef'ed type doesn't mean a thing anyhow | |||||
2008-11-19 | Make fsmMapAttrs() use rpmfi methods instead of directly accessing | Panu Matilainen | 1 | -16/+15 | |
- Save rpmfi iteration index on entry, restore on exit to avoid clashing with other users of the given file info set. For now... - Remove unnecessary re-initialization of uid and gid in case not found | |||||
2008-11-19 | Use matching type for fsm->digest to avoid unnecessary cast | Panu Matilainen | 1 | -1/+1 | |
2008-11-18 | Remove useless default flags and action fields from rpmfi | Panu Matilainen | 1 | -4/+5 | |
- fi->actions is always allocated so fi->action is never used for anything - fi->flags is just as unused and unnecessary | |||||
2008-11-17 | Add + use internal helper function for setting rpmfi file states | Panu Matilainen | 1 | -7/+8 | |
- instead of directly accessing the array from fsm, use a helper function which lazily allocates the state array as needed and sets state - also fixes the silly case of non-installed packages showing their files as "normal", ie installed (now it shows "no state" as it's not relevant) | |||||
2008-11-15 | Eliminate bogus const from fi->apath | Panu Matilainen | 1 | -1/+1 | |
2008-11-15 | Lose useless fsm/rpmfi astriplen field | Panu Matilainen | 1 | -4/+1 | |
- only "used" for debugging output, duh... | |||||
2008-11-11 | Cpio flags are only relevant for fsm, get them out of rpmfi | Panu Matilainen | 1 | -3/+2 | |
2008-11-11 | Push archivePos from rpmfi to fsm | Panu Matilainen | 1 | -5/+5 | |
- archive position is only meaningful in fsm context anyway | |||||
2008-11-05 | Remove fperms and dperms from rpmfi struct | Panu Matilainen | 1 | -3/+6 | |
- only fsm internals need and just use straightforward defaults, move the defaults there... | |||||
2008-11-05 | Kill off per-file cpio map flags | Panu Matilainen | 1 | -1/+1 | |
- nothing uses/needs them, one less murky fi->foo allocation less - apparently a leftover from initial multilib attempts long long ago | |||||
2008-11-05 | Remove useless rpmfi->gid and uid "defaults" | Panu Matilainen | 1 | -2/+2 | |
- they were only ever set on src.rpm installation yet overridden by package contents unless src.rpm didn't contain RPMTAG_FILEUSERNAME (and GROUP). Which would mean rpm 1.0 packages or thereabouts, or a malformed package. In that case we just fall back to root uid, it hardly matters | |||||
2008-10-29 | Add fsm and rpmfi machinery for file capabilities | Panu Matilainen | 1 | -0/+35 | |
- new rpmfiFCaps() API to retrieve the info from rpmfi set - fsm internals quite similar to selinux handling - plenty of #ifdef's, another possibility would be adding cap_foo dummies to system.h like for selinux | |||||
2008-09-10 | Don't generate broken cpio in case of hardlink pointing on softlink | Jindrich Novy | 1 | -4/+4 | |
- thanks to Pixel | |||||
2008-07-04 | Stuff rpmio/ugid.[ch] contents to lib/misc.[ch] | Panu Matilainen | 1 | -1/+1 | |
- no uses outside librpm itself, and there they can be hidden away from exported ABI whereas in librpmio they cant | |||||
2008-07-03 | Plug leaks in selinux context handling in fsm | Panu Matilainen | 1 | -2/+6 | |
2008-06-30 | size_t for "left" is wrong, use rpm_loff_t instead | Panu Matilainen | 1 | -2/+2 | |
2008-06-10 | Use nlink_t for hardlink count types | Panu Matilainen | 1 | -7/+7 | |
- avoids some signed vs unsigned comparisons |