summaryrefslogtreecommitdiff
path: root/lib/cpio.h
AgeCommit message (Collapse)AuthorFilesLines
2023-11-16Upgrade version to 4.14tizen/4.14.1.1.tizen20230628wangbiao1-89/+24
Change-Id: I21bf1a3a7c25cbec43022202cf2e5865b603a309 Signed-off-by: wangbiao <biao716.wang@samsung.com>
2012-07-02Push payload file size limit checking into cpio codePanu Matilainen1-0/+1
- At the time when the file list is being processed, we dont yet have the slightest clue what kind of payload will be used for for the archive or what limits it might have. Let the cpio code handle its own limits checking, the build-side only needs to worry about whether 32bit uints are sufficient for storing the sizes in headers.
2012-04-18Separate payload archive close and freePanu Matilainen1-0/+2
- When writing, archive finalization can write further data into the payload (eg cpio trailer). We need to be able to fish the final archive size *after* closing it, otherwise archive size will be off by trailer size. - Add new rpmcpioFree() function which simpy frees the archive struct, calling rpmcpioClose() in the process if it wasn't already done. - This also simplifies the error code gymnastics in fsm: we need to free the resources whether error or not, which rpmcpioFree() allows us to do. And for writers, calling rpmcpioClose() only needs to be done if earlier parts were successfull, so we dont need to worry about masking a former error code when calling it.
2012-03-27Untangle lib/fsm.c and lib/cpio.cFlorian Festi1-11/+19
Create cpio_t data type that holds the underlaying FD_t instance Move padding and position handling and trailer generation into cpio.c Use only one buffer in the fsm (merging the read and write buffer) Replace the FSM_EAT, FSM_POS, FSM_PAD, FSM_DREAD, FSM_DWRITE states with cpio functions Prepend "rpm" to the cpio function names
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-33/+32
- 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-1/+2
- 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-10-09Mark cpio functions internalPanu Matilainen1-0/+4
- cpioStrerror() is used by build code so that remains visible, ugh
2008-06-26Add a bit of protection against oversized filesPanu Matilainen1-0/+7
- max size of individual files in cpio new ascii format is well known, check we don't try to stuff in larger than what fits and abort cleanly - this should do as long as we only support new ascii format cpio payloads
2007-12-17Stick cpioMapFlags to fsm.h, they're only used by fsm.cPanu Matilainen1-19/+2
- allows FSM* typedefs to move to where they belong
2007-09-21Unexport FSM(I) typedefs, only usable within rpmPanu Matilainen1-0/+4
2007-09-11Remove splint tags.Ralf Corsépius1-11/+4
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.
2007-04-16When deleting files, drop any s-bit first, so that a maliciousPaul Nasrat1-1/+2
user does not have access to old programs if he hard links them to some other directory. [#50376] rh#125517 Patch from OpenSuSE
2004-10-20Doxygen fiddles.jbj1-1/+1
CVS patchset: 7495 CVS date: 2004/10/20 10:19:34
2003-12-25Add lsetfilecon to install modes.jbj1-9/+10
CVS patchset: 7006 CVS date: 2003/12/25 23:00:44
2003-05-08- don't use error string after gzclose (Dmitry V. Levin).jbj1-3/+3
Spliddles for rpmio, drill h_errno all the way through. CVS patchset: 6826 CVS date: 2003/05/08 20:39:29
2003-03-23Make peace with automake-1.7.3.jbj1-1/+3
Recheck thread safety markes with fsm synchronous threads. CVS patchset: 6714 CVS date: 2003/03/23 00:36:13
2002-12-31Dump multilib code, colored depndencies instead.jbj1-2/+1
CVS patchset: 5990 CVS date: 2002/12/31 02:12:02
2002-07-08Propagate splint-3.0.1.7 close(2) internalState annotation throughout.jbj1-7/+8
CVS patchset: 5542 CVS date: 2002/07/08 14:21:26
2002-04-13- use rpmdb-redhat to suggest dependency resolution(s).jbj1-5/+0
CVS patchset: 5401 CVS date: 2002/04/13 01:28:20
2002-04-08doxygen cleanup.jbj1-1/+3
CVS patchset: 5379 CVS date: 2002/04/08 18:56:01
2001-10-15lclint fiddles to annotate globals.jbj1-1/+4
CVS patchset: 5106 CVS date: 2001/10/15 03:22:10
2001-10-13- ratchet up to lclint "strict" level.jbj1-1/+0
CVS patchset: 5104 CVS date: 2001/10/13 19:35:58
2001-09-25- legacy: drop brokenMD5 support (rrpm-2.3.3 to rpm-2.3.8 on sparc).jbj1-1/+2
- 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-1/+2
CVS patchset: 4987 CVS date: 2001/07/24 20:39:19
2001-07-16- fix: don't total hard linked file size multiple times (#46286).jbj1-2/+3
- add %dev(type,major,minor) directive to permit non-root dev build. CVS patchset: 4944 CVS date: 2001/07/16 14:48:07
2001-06-25Yet another patial harlink set fix.jbj1-0/+1
CVS patchset: 4903 CVS date: 2001/06/25 20:01:42
2001-06-04lclint fiddles.jbj1-2/+4
CVS patchset: 4833 CVS date: 2001/06/04 13:55:58
2001-02-111st stab at --repackage.jbj1-6/+8
CVS patchset: 4545 CVS date: 2001/02/11 22:02:29
2001-02-09fix: make a copy of retrieved header before loading.jbj1-0/+4
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-21/+38
CVS patchset: 4531 CVS date: 2001/02/08 23:05:05
2001-02-08Move state machine drivers into fsmStage.jbj1-0/+2
Off to fix build's yet again. CVS patchset: 4530 CVS date: 2001/02/08 21:50:38
2001-02-02Use fsm for building.jbj1-7/+3
CVS patchset: 4514 CVS date: 2001/02/02 15:04:44
2001-01-29Commit to install file state machine.jbj1-11/+8
CVS patchset: 4509 CVS date: 2001/01/29 22:53:48
2001-01-28Apply suffixes only to files.jbj1-18/+2
Bundle dev/symlink/fifo/sock into hdr state machine. CVS patchset: 4505 CVS date: 2001/01/28 19:12:04
2001-01-28Payload state machine, with commit and undo.jbj1-12/+15
CVS patchset: 4503 CVS date: 2001/01/28 02:13:48
2001-01-25- remove support for v1 src rpm's.jbj1-21/+18
- reposition callbacks with ts/fi in cpio payload layer. CVS patchset: 4498 CVS date: 2001/01/25 20:26:35
2001-01-24Add rollback.h, 1st attempt to rationalize TFI_t.jbj1-3/+0
CVS patchset: 4496 CVS date: 2001/01/24 21:35:52
2001-01-24Rip XFI_t from install.jbj1-20/+8
CVS patchset: 4495 CVS date: 2001/01/24 15:58:35
2001-01-23Rip out cpioFileMap.jbj1-14/+0
CVS patchset: 4493 CVS date: 2001/01/23 23:03:28
2001-01-22Make cpio maps totally opaque.jbj1-2/+4
CVS patchset: 4487 CVS date: 2001/01/22 19:11:19
2001-01-21- cpio mappings carry dirname/basename, not absolute path.jbj1-11/+11
CVS patchset: 4474 CVS date: 2001/01/21 15:43:32
2001-01-02doxygen annotations for popt.jbj1-1/+1
CVS patchset: 4401 CVS date: 2001/01/02 17:19:34
2000-10-24- verify MD5 sums of payload files when unpacking archive.jbj1-1/+3
CVS patchset: 4225 CVS date: 2000/10/24 13:46:51
2000-10-20- pass rpmTransactionSet, not elements, to installBinaryPackage et al.jbj1-7/+14
CVS patchset: 4221 CVS date: 2000/10/20 22:04:27
2000-08-28- rip out rpm{get,put}text, use getpo.sh and specspo instead.jbj1-22/+26
CVS patchset: 4139 CVS date: 2000/08/28 01:50:45
2000-08-28Doxygen annotations.jbj1-2/+1
CVS patchset: 4138 CVS date: 2000/08/28 01:08:57
2000-08-27Doxygen annotations.jbj1-9/+10
CVS patchset: 4130 CVS date: 2000/08/27 19:18:25
2000-08-23lclint/doxygen additions.jbj1-6/+29
CVS patchset: 4101 CVS date: 2000/08/23 12:39:49