summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fixing resource cleanup in minitarKrystian Wojcicki2019-11-221-0/+3
|
* Fix scoping error with "disk" variableGeorge Hartzell2016-09-291-5/+3
| | | | | | | | | The variable named 'disk' inside the loop was hiding the variable named 'disk' at the outer level. The outer variable was never used, get rid of it. Move the call to archive_read_disk_set_standard_lookup(disk) inside the loop so that it Does What It Should.
* Issue 690: Document the possible need for -lacl on some Linux systemsTim Kientzle2016-04-271-1/+7
|
* fix missing archive_write_close for write objectprehistoric-penguin2016-04-111-0/+3
| | | fix missing archive_write_close and archive_write_free
* Cleanup error message printing in minitar examplePaul Barker2015-09-251-9/+18
| | | | | | | | | | | | * An error message should not be printed if EOF is reached in copy_data. However an error message should be printed if any other error is encountered. * A newline should be printed in extract if an error message was printed. * If a file name is printed in extract (verbose operation) it should be followed by a space incase there is an error message. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
* Bug fix (segfault): check filename against NULL in case we wantJean-Yves Migeon2013-09-051-1/+1
| | | | the output to go to stdout.
* Set offset to correct data type.Martin Pitt2013-02-091-1/+1
| | | | | Fixes #282 Signed-off-by: Andres Mejia <amejia004@gmail.com>
* Use correct define for libarchive version number in archive.h.Martin Pitt2013-02-091-1/+1
| | | | Signed-off-by: Andres Mejia <amejia004@gmail.com>
* Set a default error message if message passed in is NULL.Benjamin Drung2013-02-091-0/+3
| | | | Signed-off-by: Andres Mejia <amejia004@gmail.com>
* Fix build failure of example program because of __FBSDID define.Benjamin Drung2013-02-091-1/+0
| | | | | Fixes #283 Signed-off-by: Andres Mejia <amejia004@gmail.com>
* Issue 269. Stop using deprecated functions in example source code.Michihiro NAKAJIMA2012-12-022-8/+8
|
* Make untar.c build correctly with libarchive 3.0.Tim Kientzle2011-09-181-0/+4
| | | | SVN-Revision: 3719
* client and example programs use archive_read_support_filter_*()Roman Neuhauser2011-03-282-4/+4
| | | | | | | the archive_read_support_compression_* -> archive_read_support_filter change should now be complete. SVN-Revision: 3115
* Rework minitar example to use archive_read_disk directoryTim Kientzle2010-07-034-534/+62
| | | | | | traversal instead of a local copy of tree.c SVN-Revision: 2526
* Rename archive_read_finish to archive_read_free andTim Kientzle2010-02-083-5/+5
| | | | | | | | | | | | | archive_write_finish to archive_write_free. Update all clients, tests, and documentation to use the new names exclusively. (Though I've not yet run a global search-and-replace against the Wiki. I'll do that shortly.) I've preserved the old names as aliases, scheduled to be removed with libarchive 4.x, so there is no immediate impact to existing code from this change. SVN-Revision: 1891
* Another fix, thanks to Daniel Mack.Tim Kientzle2009-08-311-1/+1
| | | | SVN-Revision: 1409
* Minor updates to minitar: Support compress on write, add fullTim Kientzle2009-08-292-80/+74
| | | | | | | | user/group lookups by default and an option to suppress them. With all of the suppression macros, this compiles to about the same size as does examples/untar.c. SVN-Revision: 1398
* Fix a handful of bugs in untar.c and significantly extend the openingTim Kientzle2009-08-281-24/+74
| | | | | | | | | | commentary, which hasn't really been updated since 2006 or so. In particular, I went back and rechecked the sizes on modern FreeBSD and found that things have bloated quite a bit: statically compiled, untar.c is now about 25% larger than hello.c, where it used to be almost 25% smaller. SVN-Revision: 1396
* Comment tweaks; make it a little more obvious the differenceTim Kientzle2009-05-301-9/+10
| | | | | | | between examples/untar.c and contrib/untar.c. I should probably rename one of these. SVN-Revision: 1144
* Include 'examples' and 'contrib' dirs from libarchive portable distro.Tim Kientzle2008-04-307-0/+1298
SVN-Revision: 8