aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/test/test_write_disk_secure.c
Commit message (Collapse)AuthorAgeFilesLines
* Use contrib sources for building libarchive, tar and cpio.Martin Matuska2011-12-221-215/+0
| | | | | | | | | Make "make test" fully operational. MFC after: 2 weeks Notes: svn path=/head/; revision=228797
* A raft of test changes and improvements from the Googlecode repository.Tim Kientzle2009-12-301-11/+2
| | | | | | | | In particular, this includes tests for the new features I've merged over the last few days. Notes: svn path=/head/; revision=201247
* 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 r294:337,r348:350 from libarchive.googlecode.com: A lotTim Kientzle2009-03-031-0/+4
| | | | | | | of work to make libarchive work on Windows. Notes: svn path=/head/; revision=189308
* Merge-from-Googlecode r419Tim Kientzle2009-01-211-1/+1
| | | | | | | | | | | | | | | | | | In archive_write_disk: If archive_write_header() fails to create the file, that's a failure and should return ARCHIVE_FAILED. Metadata restore failures still return ARCHIVE_WARN, because that's non-critical. Fix test_write_disk_secure test to verify the correct return code in one case; add test_write_disk_failures to do another very simple test of restore failure. This should fix cpio coredumping when it tries to restore to a write-protected directory. Thanks to: Giorgos Keramidas MFC after: 30 days Notes: svn path=/head/; revision=187521
* Correct a leaking archive_entry in the test suite.Tim Kientzle2008-09-071-0/+1
| | | | Notes: svn path=/head/; revision=182858
* Correct the comments here.Tim Kientzle2008-09-071-2/+2
| | | | | | | | PR: bin/126849 MFC after: 3 days Notes: svn path=/head/; revision=182839
* When restoring a directory, allow symlinks to be followed. The fullTim Kientzle2008-09-071-0/+73
| | | | | | | | | | | | | | | logic here gets a little complex, but the net effect is that the SECURE_SYMLINKS flag will prevent us from ever following a symlink. Without it, we'll only follow symlinks to dirs. bsdtar specifies SECURE_SYMLINKS by default, suppresses it for -P. I've also beefed up the write_disk_secure test to verify this behavior. PR: bin/126849 Notes: svn path=/head/; revision=182838
* Style: Use ARCHIVE_VERSION_NUMBER to conditionalize tests onTim Kientzle2008-09-011-5/+4
| | | | | | | | the particular libarchive version being tested instead of the deprecated ARCHIVE_API_VERSION and ARCHIVE_VERSION_STAMP macros. Notes: svn path=/head/; revision=182592
* MfP4: test harness improvements.Tim Kientzle2008-06-151-2/+2
| | | | Notes: svn path=/head/; revision=179798
* Make test suite work with libarchive 1.3.1: Take advantage ofTim Kientzle2007-07-061-0/+4
| | | | | | | | | | | | | | | | ARCHIVE_VERSION_STAMP to selectively disable tests that don't apply to that version; new "skipping()" function reports skipped tests; modify final summary to report component test failures and skips. Note: I don't currently intend to MFC the test suite itself; anyone interested should just checkout and use this version of the test suite, which should work for any library version. Approved by: re (Ken Smith, blanket) Notes: svn path=/head/; revision=171280
* Clean up a lot of memory leaks in the libarchive test harness.Tim Kientzle2007-04-151-0/+3
| | | | Notes: svn path=/head/; revision=168745
* libarchive 2.0Tim Kientzle2007-03-031-0/+140
* libarchive_test program exercises many of the core features * Refactored old "read_extract" into new "archive_write_disk", which uses archive_write methods to put entries onto disk. In particular, you can now use archive_write_disk to create objects on disk without having an archive available. * Pushed some security checks from bsdtar down into libarchive, where they can be better optimized. * Rearchitected the logic for creating objects on disk to reduce the number of system calls. Several common cases now use a minimum number of system calls. * Virtualized some internal interfaces to provide a clearer separation of read and write handling and make it simpler to override key methods. * New "empty" format reader. * Corrected return types (this ABI breakage required the "2.0" version bump) * Many bug fixes. Notes: svn path=/head/; revision=167186