summaryrefslogtreecommitdiff
path: root/lib/cpio.c
AgeCommit message (Collapse)AuthorFilesLines
2009-03-19Revert couple of checksum -> digest renamesPanu Matilainen1-1/+1
- physical cpio header and elf header have checksums, not digests (from commit 7acdfded4a82e86a673418c3953aa6bf8106d313) - doesn't affect functionality though
2009-02-27Add md5->filedigest aliases (rhbz#487597)Jindrich Novy1-2/+2
- 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
2008-10-29Add fsm and rpmfi machinery for file capabilitiesPanu Matilainen1-0/+1
- 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-06-30strntoul() is supposed to return unsigned long, not intPanu Matilainen1-1/+1
- the type mismatch busts up handling on largish files...
2008-05-08Caught pants down with strlcpy() vs strncpy() semanticsPanu Matilainen1-2/+2
- rstrlcpy() calculates source string size regardless of length limit, but cpio fields are fixed length character arrays, not strings -> kaboom - wondering if zero-terminating strncpy() variant might be more fit to our purposes than strlcpy()-clone
2008-05-03Add missing includePanu Matilainen1-0/+1
2008-04-28Remove alloca() from strntoul() helper in cpioPanu Matilainen1-5/+2
- only small (< 10 chars) buffers from struct cpioCrcPhysicalHeader are ever passed in, tmp buffer on stack is safe
2008-01-30Include spring-cleaningPanu Matilainen1-1/+1
- 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-30Remove bunch of unnecessary rpmlib.h includesPanu Matilainen1-1/+1
- replace with rpmtypes.h where needed
2007-12-14Bunch of const char* correctionsPanu Matilainen1-4/+5
- functions returning string constants as char * etc...
2007-12-14Oops, major + minor are not dev_t...Panu Matilainen1-1/+1
2007-12-14Use dev_t instead of ints..Panu Matilainen1-6/+7
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-2/+2
- adjust include paths accordingly
2007-11-23Expand private include file names to be relative to $(top_srcdir)Ralf Corsépius1-2/+2
2007-11-23Use #include <x.h> syntax to include public headers.Ralf Corsépius1-2/+2
2007-11-19Lose rpmerr.h for goodPanu Matilainen1-1/+1
2007-10-28Include "rpmlib.h" instead of <rpmlib.h>.Ralf Corsépius1-1/+1
2007-10-22Remove bunch of unnecessary rpmio_internal includesPanu Matilainen1-1/+0
2007-10-04Change strntoul to using size_t for sizes.Ralf Corsépius1-1/+1
2007-09-11Remove splint tags.Ralf Corsépius1-27/+5
2007-07-10Remove const type-qualifiers from function return types everywhere.Panu Matilainen1-1/+1
They're meaningless in C and cause tonne of build warnings.
2003-12-25Add lsetfilecon to install modes.jbj1-0/+1
CVS patchset: 7006 CVS date: 2003/12/25 23:00:44
2003-03-23Make peace with automake-1.7.3.jbj1-0/+2
Recheck thread safety markes with fsm synchronous threads. CVS patchset: 6714 CVS date: 2003/03/23 00:36:13
2003-03-19Sanity.jbj1-6/+6
CVS patchset: 6705 CVS date: 2003/03/19 03:00:02
2002-07-03- use rpmfi in showQueryPackage(), eliminating headerGetEntry().jbj1-2/+5
CVS patchset: 5538 CVS date: 2002/07/03 14:01:49
2002-07-02Add boundsread annotations throughout, enable +bounds checking.jbj1-3/+3
Start narrowing the scope of bounds annotations by adding more annotations. CVS patchset: 5537 CVS date: 2002/07/02 23:54:35
2002-06-22Factor bounds checking annotations into source code.jbj1-0/+12
CVS patchset: 5521 CVS date: 2002/06/22 18:51:56
2002-04-13- use rpmdb-redhat to suggest dependency resolution(s).jbj1-0/+5
CVS patchset: 5401 CVS date: 2002/04/13 01:28:20
2002-04-08doxygen cleanup.jbj1-2/+2
CVS patchset: 5379 CVS date: 2002/04/08 18:56:01
2002-01-18- missing key(s) on keyring when verifying a signature is now an error.jbj1-2/+6
- remove dependency whiteout. - splint fiddles. CVS patchset: 5255 CVS date: 2002/01/18 22:51:30
2001-10-17Converging on lclint-3.0.17 strict level.jbj1-5/+0
CVS patchset: 5118 CVS date: 2001/10/17 16:43:36
2001-10-15Explicit branchstate annotations.jbj1-0/+4
CVS patchset: 5113 CVS date: 2001/10/15 17:53:34
2001-10-15lclint fiddles to annotate globals.jbj1-0/+1
CVS patchset: 5106 CVS date: 2001/10/15 03:22:10
2001-09-25- legacy: drop brokenMD5 support (rrpm-2.3.3 to rpm-2.3.8 on sparc).jbj1-1/+0
- eliminate DYING code. CVS patchset: 5082 CVS date: 2001/09/25 20:51:34
2001-07-24- fix: don't segfault when presented with rpm-2.4.10 packaging (#49688).jbj1-0/+1
CVS patchset: 4987 CVS date: 2001/07/24 20:39:19
2001-06-20- fix: partial sets of hardlinked files forbidden in payload.jbj1-1/+1
- fix: mark rpmdb files with %config to prevent erasure on downgrade. CVS patchset: 4891 CVS date: 2001/06/20 06:29:20
2001-06-04lclint fiddles.jbj1-0/+2
CVS patchset: 4833 CVS date: 2001/06/04 13:55:58
2001-04-29- globalize _free(3) wrapper in rpmlib.h, consistent usage throughout.jbj1-11/+1
- internalize locale insensitive ctype(3) in rpmio.h - boring lclint annotations and fiddles. CVS patchset: 4721 CVS date: 2001/04/29 01:05:43
2001-04-17- fix: s390 (and ppc?) could return CPIOERR_BAD_HEADER (#28645).jbj1-2/+2
CVS patchset: 4682 CVS date: 2001/04/17 18:23:58
2001-02-10Reorganize sources before implementing --repackage.jbj1-1886/+9
CVS patchset: 4543 CVS date: 2001/02/10 16:47:40
2001-02-09fix: make a copy of retrieved header before loading.jbj1-73/+73
handle out-of-sync hardlinks as sub-state, don't save the file name. fix: on build, was broke, add --fsmdebug as well. CVS patchset: 4537 CVS date: 2001/02/09 20:58:37
2001-02-08Remove DEAD code.jbj1-147/+10
CVS patchset: 4531 CVS date: 2001/02/08 23:05:05
2001-02-08Move state machine drivers into fsmStage.jbj1-181/+194
Off to fix build's yet again. CVS patchset: 4530 CVS date: 2001/02/08 21:50:38
2001-02-06Asynchronous commit of installed files.jbj1-70/+134
fix: set file mtimes from package. fix: insure that notify is not called at start of commit. CVS patchset: 4523 CVS date: 2001/02/06 22:39:56
2001-02-05fix: links weren't renamed correctly.jbj1-22/+23
Use hge/hfd vectors most everywhere. CVS patchset: 4522 CVS date: 2001/02/05 22:22:43
2001-02-05Remove XFA_SKIPPING from iterator.jbj1-31/+32
Make sure that external stages are properly postponed. CVS patchset: 4521 CVS date: 2001/02/05 17:55:34
2001-02-04revert speedup on commit if same perms, there's more to do.jbj1-90/+72
lclint annotations. CVS patchset: 4520 CVS date: 2001/02/04 22:15:30
2001-02-04Rip out remnants of cpio file mapping.jbj1-392/+356
CVS patchset: 4519 CVS date: 2001/02/04 18:15:21
2001-02-04Merged build/install in file state machine.jbj1-435/+371
CVS patchset: 4518 CVS date: 2001/02/04 02:04:09
2001-02-03fix: db1 dbopen() check found in libc not auto-configuring forrectly.jbj1-89/+157
Add fsm->goal to start unifying install/erase/build state machines. Use rpmio syscall rpc where available. FSM_BUILD has explicit init/fini stages. FSM_LSTAT done once in init. FSM_MKDIRS done in init. CVS patchset: 4517 CVS date: 2001/02/03 20:07:39