summaryrefslogtreecommitdiff
path: root/libarchive/archive_check_magic.c
Commit message (Collapse)AuthorAgeFilesLines
* remove unneeded strlenMarc Espie2020-06-041-1/+1
| | | | this is obviously s, no need to recompute it each time
* Mark functions that don't return as dead.Joerg Sonnenberger2017-02-261-1/+1
|
* Rename archive_matching to archive_match.Michihiro NAKAJIMA2012-02-081-1/+1
|
* Introduce archive_matching APIs. This is a set of utility functions toMichihiro NAKAJIMA2012-01-171-0/+1
| | | | | | | | | | find matched archive_entry objects. This is based on libarchive_fe/matching.[ch] I added serveral interfaces for wchar_t, and matching file stamps and owners. I also plan to use that at archive_read_disk instead of archive_read_disk_set_name_filter_callback function, which I recently added. SVN-Revision: 4162
* Only abort() if the archive handle is so screwed up that weTim Kientzle2011-02-191-8/+31
| | | | | | | can't report an error. Otherwise, return FATAL and report a PROGRAMMER ERROR. SVN-Revision: 2988
* DO NOT USE C++ style comments like // in C code !Björn Jacke2011-02-171-2/+2
| | | | | | | | Not all C compilers are happy with them, lxc on AIX for example. There are much more of them in the testing code but the ones fixed with this commit make at least the most important things compile. SVN-Revision: 2986
* Correct the error message printed for a state failure.Tim Kientzle2010-03-041-1/+1
| | | | SVN-Revision: 2007
* Open a door to changing the current abort-on-state-failure behavior:Tim Kientzle2010-03-011-19/+36
| | | | | | | | | | | | | | | * 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
* Sync $FreeBSD$ version info from FreeBSD SVNTim Kientzle2009-12-301-1/+1
| | | | SVN-Revision: 1786
* Use the standard abort() function to terminate the program if there'sTim Kientzle2009-11-191-2/+1
| | | | | | a fatal API violation by a libarchive client. SVN-Revision: 1675
* Fix some compiler warnings in VS9.Tim Kientzle2009-09-131-1/+1
| | | | SVN-Revision: 1457
* Handle short writes correctly.Tim Kientzle2009-05-101-2/+10
| | | | SVN-Revision: 1078
* Building on Ubuntu 9 provoked some complaints about return valuesTim Kientzle2009-05-081-1/+2
| | | | | | | | | | not being used. Some of these are good catches, a few are annoying. Unfortunately, GCC on this system won't just allow you to cast the result explicitly to (void) to shut up the error, so I've had to introduce some gratuitous extra variables. <sigh> SVN-Revision: 1075
* Issue 15, part 1. Mechanical conversion of #defines, libarchive/Charles Wilson2009-03-171-2/+2
| | | | | | | | | | | | #ifdef _WIN32 --> #if defined(_WIN32) && !defined(__CYGWIN__) #ifndef _WIN32 --> #if !defined(_WIN32) || defined(__CYGWIN__) Exceptions to the general rule: libarchive/archive.h: we want declspec for both libarchive/archive_entry.h: ditto libarchive/archive_write_disk.c: we want to fix backslashs, and to use cleanup_pathname_win on both. SVN-Revision: 787
* On Windows, throw a debug exception on a fatal internal error.Tim Kientzle2009-01-021-0/+8
| | | | | | Submitted by: Michihiro NAKAJIMA SVN-Revision: 358
* IFCTim Kientzle2008-12-051-1/+1
| | | | SVN-Revision: 266
* 2 is more portable than STDERR_FILENOTim Kientzle2008-11-101-1/+1
| | | | SVN-Revision: 251
* IFC to populate initial libarchive-portable tree.Tim Kientzle2008-04-291-0/+118
SVN-Revision: 1