summaryrefslogtreecommitdiff
path: root/lib/libarchive/archive_check_magic.c
Commit message (Collapse)AuthorAgeFilesLines
* Use contrib sources for building libarchive, tar and cpio.Martin Matuska2011-12-221-134/+0
| | | | | | | | | Make "make test" fully operational. MFC after: 2 weeks Notes: svn path=/head/; revision=228797
* Portability: terminate abnormally via abort() instead of segfault,Tim Kientzle2009-12-281-4/+12
| | | | | | | | watch the return value from write(), and avoid signed arithmetic on unsigned values. Notes: svn path=/head/; revision=201089
* Merge from libarchive.googlecode.com: Mostly a bunch ofTim Kientzle2009-04-121-2/+2
| | | | | | | | | | | | | | | | corrections to the Windows support to reconcile differences between Visual Studio and Cygwin. Includes parts of revisions 757, 774, 787, 815, 817, 819, 820, 844, and 886. Of particular note, r886 overhauled the UTF-8/Unicode conversions to work correctly regardless of whether the local system uses 16-bit or 32-bit wchar_t. (I assume that systems with 16-bit wchar_t use UTF-16 and those with 32-bit wchar_t use UCS-4.) This revision also added a preference for wcrtomb() (which is thread-safe) on platforms that support it. Notes: svn path=/head/; revision=190959
* Merge r356 and r358 from libarchive.googlecode.com: Remove a WindowsTim Kientzle2009-03-051-0/+8
| | | | | | | special case from archive_entry.c, add one to archive_check_magic.c. Notes: svn path=/head/; revision=189386
* 2 is more portable than STDERR_FILENOTim Kientzle2008-12-061-1/+1
| | | | Notes: svn path=/head/; revision=185664
* Style: bare "unsigned" is deprecated, use "unsigned int" instead.Tim Kientzle2007-04-021-4/+4
| | | | | | | Thanks to: Joerg Sonnenberger Notes: svn path=/head/; revision=168231
* Fix the copyright notice; it was always intended to beTim Kientzle2007-01-091-3/+2
| | | | | | | | | | | | a vanilla 2-clause BSD license, but somehow some confusing extra verbage get copied from somewhere. Also, update the copyright dates to 2007 for all of the files. Prompted by: several questions about what those extra words really mean Notes: svn path=/head/; revision=165912
* Portability and style fixes:Tim Kientzle2006-11-101-0/+9
| | | | | | | | | | | | | | | | | * Actually use the HAVE_<header>_H macros to conditionally include system headers. They've been defined for a long time, but only used in a few places. Now they're used pretty consistently throughout. * Fill in a lot of missing casts for conversions from void*. Although Standard C doesn't require this, some people have been trying to use C++ compilers with this code, and they do require it. Bit-for-bit, the compiled object files are identical, except for one assert() whose line number changed, so I'm pretty confident I didn't break anything. ;-) Notes: svn path=/head/; revision=164142
* Use STDERR_FILENO instead of 2, as POSIX intended.Tim Kientzle2004-10-181-1/+1
| | | | | | | Thanks to: Alfred Perlstein Notes: svn path=/head/; revision=136641
* Don't rely on stdio here.Tim Kientzle2004-10-171-11/+20
| | | | Notes: svn path=/head/; revision=136628
* More work on ACLs: fix error in archive_entry's ACL parsing code,Tim Kientzle2004-04-121-3/+0
| | | | | | | | | | | | | | | | | try to set ACLs even if fflag restore fails, first cut at reading Solaris tar ACLs Code improvement: merge gnu tar read support into main tar reader; this eliminates a lot of duplicate code and generalizes the tar reader to handle formats with GNU-like extensions. Style: Makefile cleanup, eliminate 'dmalloc' references, remove 'tartype' from archive_entry (this makes archive_entry more format-agnostic) Thanks to: David Magda for providing Solaris tar test files Notes: svn path=/head/; revision=128148
* Many fixes.Tim Kientzle2004-03-091-2/+4
| | | | | | | | | | | | | | | | | | | Portability: Thanks to Juergen Lock, libarchive now compiles cleanly on Linux. Along the way, I cleaned up a lot of error return codes and reorganized some code to simplify conditional compilation of certain sections. Bug fixes: * pax format now actually stores filenames that are 101-154 characters long. * pax format now allows newline characters in extended attributes (this fixes a long-standing bug in ACL handling) * mtime/atime are now restored for directories * directory list is now sorted prior to fix-up to permit correct restore of non-writable dir heirarchies Notes: svn path=/head/; revision=126782
* Initial import of libarchive.Tim Kientzle2004-02-091-0/+102
What it is: A library for reading and writing various streaming archive formats, especially tar and cpio. Being a library, it should be easy to incorporate into pkg_* tools, sysinstall, and any other place that needs to read or write such archives. Features: * Full automatic detection of both compression and archive format. * Extensible internal architecture to make it easy to add new formats. * Support for "pax interchange format," a new POSIX-standard tar format that eliminates essentially all of the restrictions of historic formats. * BSD license Thanks to: jkh for pushing me to start this work, gordon for encouraging me to commit it, bde for answering endless style questions, and many others for feedback and encouragement. Status: Pretty good overall, though there are still a few rough edges and the library could always use more testing. Feedback eagerly solicited. Notes: svn path=/head/; revision=125635