summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_set_format_cpio_newc.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix writing of cpio archives containing hardlinks without file typeGleb Fotengauer-Malinovskiy2020-05-291-1/+1
| | | | Fixes: https://github.com/libarchive/libarchive/issues/1386
* Unify unsupported entry file type error message in writerMartin Matuska2020-01-251-0/+1
| | | | Closes #1320
* Bug #1128: Deletion of unnecessary checks before calls of the function ↵Markus Elfring2019-02-041-2/+1
| | | | | | | | | | | | “archive_entry_free” The function “archive_entry_free” is implemented in the way that only two functions are called which tolerate the passing of null pointers. It is therefore not needed that a function caller repeats a corresponding check. This issue was fixed by using the software “Coccinelle 1.0.7”. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
* Replace malloc + memset with calloc.Joerg Sonnenberger2016-12-061-2/+1
|
* Spelling fixes (#831)Graham Percival2016-12-041-1/+1
| | | Sponsored by: Tarsnap Backup Inc.
* On Windows, make sure libarchive does not store the Windows style pathMichihiro NAKAJIMA2012-02-211-13/+48
| | | | | | separator '\' character into cpio, pax, ustar, gtar and zip archives, because it is not interoperable between Windows and POSIX platform, so we should replace '\' character in the pathnames with '/'.
* On Visual Studio, Enable Warning 4244: 'conversion' conversion from 'type1'Michihiro NAKAJIMA2012-02-191-3/+4
| | | | to 'type2', possible lose of data.
* Fix issue 237.Michihiro NAKAJIMA2012-02-141-4/+6
| | | | Properly set a clear error message when archive_{write,read}_set_options failed.
* Rework the cpio readers and writers to not rely on structureTim Kientzle2011-09-081-40/+53
| | | | | | alignment to read headers. SVN-Revision: 3691
* Rework a handling of memory allocation failure in string conversion;Michihiro NAKAJIMA2011-05-161-1/+16
| | | | | | report the failure to the caller as much as we can instead of calling __archive_errx(). SVN-Revision: 3345
* Remove unneeded code in archive_write_set_format_cpio_newc.cMichihiro NAKAJIMA2011-05-151-2/+0
| | | | SVN-Revision: 3334
* Use archive_entry_*_l functions at cpio newc format writer.Michihiro NAKAJIMA2011-05-111-7/+82
| | | | SVN-Revision: 3306
* Issue 113: Include an error message when the size overflows.Tim Kientzle2010-11-111-4/+7
| | | | SVN-Revision: 2784
* Issue 113: When writing headers, return ARCHIVE_FAILEDTim Kientzle2010-11-101-13/+44
| | | | | | | | | | on various problems: * Missing name * Missing size (except for hardlinks) * Missing filetype * Size too large for format SVN-Revision: 2782
* Introduce a shared __archive_write_nulls() method and removeTim Kientzle2010-04-171-12/+1
| | | | | | the duplicate copies of this function. SVN-Revision: 2262
* remove pad_uncompressed; unused legacy bitsBrian Harring2010-04-041-2/+0
| | | | SVN-Revision: 2203
* Rename 'finish' to 'close' and 'destroy' to 'free', to clarifyTim Kientzle2010-03-011-8/+8
| | | | | | the new/open/close/free lifecycle terminology. SVN-Revision: 2004
* Open a door to changing the current abort-on-state-failure behavior:Tim Kientzle2010-03-011-0/+3
| | | | | | | | | | | | | | | * Change __archive_check_magic to return a status code. * Change callers to use the archive_check_magic() wrapper macro, which calls __archive_check_magic and returns immediately if there's an ARCHIVE_FATAL status. * Update a bunch of API calls to actually do magic state checks. I've also changed __archive_check_magic around a little bit: * Magic number checks still call abort(). * State failures still call abort() * Starting with libarchive 3.0, state failures will return ARCHIVE_FATAL. SVN-Revision: 2003
* Stackable write filter support. This ended up touching an awful lotTim Kientzle2010-02-201-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of files. But, the old API is supported almost entirely unchanged, which I wasn't certain would be possible. Big changes: * You can add more than one write filter by using archive_write_add_filter_{bzip2,compress,gzip,lzma,xz}. This will be more interesting when we have uuencode, RPM, encryption. * The old archive_write_set_compression_XXXX are shorthands for "remove all the current filters and add this one." They're deprecated and scheduled to be removed in libarchive 4.0. * The internal API and life cycle for write filters has been rationalized: create, set options, open, write, close, free. * New utility functions provide information about each filter when there's more than one: code, name, and number of bytes processed * Old archive_bytes_compressed(), etc, are implemented in terms of the more generic new functions. * The read side was generalized to also support the new utility functions. In particular, the write filters are much simpler since each one doesn't have to deal with blocking. In this version, there's still a "write_add_filter_none" that handles blocking, but I think I'll soon fold that down into the client wrapper and add_filter_none will become a no-op. I think this also gets us a big step closer to multi-volume support on the write side. SVN-Revision: 1920
* Sync $FreeBSD$ version info from FreeBSD SVNTim Kientzle2009-12-301-1/+1
| | | | SVN-Revision: 1786
* Eliminate warnings on Visual Studio 10 W64.Michihiro NAKAJIMA2009-12-211-2/+3
| | | | | | | | On Win64, the size of 'int' is stil 4 bytes and the size of 'size_t' is 8 bytes. A conversion from 'size_t' to 'int', causes warning with compiling. SVN-Revision: 1772
* Style: Break some long lines.Tim Kientzle2009-12-061-5/+11
| | | | | | | Also, restructure the index number handling to include a truncation check. SVN-Revision: 1714
* Return ARCHIVE_WARN if large inode number was truncated.Michihiro NAKAJIMA2009-11-091-3/+5
| | | | | | Found by Clang Static Analyzer. SVN-Revision: 1616
* - Value stored to 'ret' is never read.Michihiro NAKAJIMA2009-11-091-4/+1
| | | | | | | | | | - Value stored to 'cpio' is never read. - Although the value stored to 'v' is used in the enclosing expression, the value is never actually read from 'v'. Found by Clang Static Analyzer. SVN-Revision: 1615
* Use int64_t for storing inode values internally.Tim Kientzle2009-09-241-2/+2
| | | | | | This fixes some hardlink-detection issues on Windows: NTFS uses 64-bit inode values, but Windows ino_t is only 16 bits. SVN-Revision: 1463
* Fix some compiler warnings in VS9.Tim Kientzle2009-09-131-3/+6
| | | | SVN-Revision: 1457
* Implement format/filter/compressor option frame work.Michihiro NAKAJIMA2009-01-261-0/+1
| | | | SVN-Revision: 491
* IFC to populate initial libarchive-portable tree.Tim Kientzle2008-04-291-0/+285
SVN-Revision: 1