summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar/tree.c
Commit message (Collapse)AuthorAgeFilesLines
* Use contrib sources for building libarchive, tar and cpio.mm2011-12-221-820/+0
| | | | | | Make "make test" fully operational. MFC after: 2 weeks
* Update libarchive, tar and cpio to version 2.8.5mm2011-12-201-114/+332
| | | | | | | | | | The following additional vendor revisions are applied: Revision 3740: Use archive_clear_error() to clear the error markers. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks
* In usr.bin/tar/tree.c, if you really want to poke to NULL, you must usedim2011-12-171-1/+1
| | | | | | volatile, otherwise the indirection will not be emitted. MFC after: 1 week
* Fix common misspelling of hierarchyuqs2010-02-201-1/+1
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* Merge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.kientzle2009-04-171-17/+23
|
* Merger r629-631,633-646,648,654,678,681,682 from libarchive.googlecode.com:kientzle2009-03-081-0/+33
| | | | | Many changes for Windows compatibility. bsdtar_test now runs successfully on both POSIX platforms and Windows.
* After visiting a subdirectory, we use chdir("..") orkientzle2008-11-271-7/+28
| | | | | | | | | | fchdir() to return back to the parent. If those fail, we're just dead in the water. Add a new error value TREE_ERROR_FATAL to indicate that directory traversal cannot continue. Have write.c honor that by exiting immediately. MFC after: 30 days
* bsdtar 2.0.23:kientzle2007-03-111-0/+14
| | | | | | | | | | * New test scripts exercise some basic functionality * Most header inclusions are now protected (portability) * read.c now relies on security checks in libarchive instead of trying to do its own (optimization) * -p now enabled by default for root, add --no-same-permissions to disable it * Comments, minor style fixes.
* Make the file tests robust against broken symlinks and otherkientzle2007-03-031-3/+17
| | | | sources of stat()/lstat() failure.
* If we already have stat() data, we might be able tokientzle2007-02-211-21/+29
| | | | | | determine if this is a physical dir without an lstat(). While I'm in here, try to clarify the comments around the _is_dir() and _is_physical_dir() tests.
* Correct the copyright messages: Make this a standard vanillakientzle2007-01-091-3/+2
| | | | 2-clause BSD license, update the year to 2007.
* Extended attribute support on write for Linux; FreeBSD hooks arekientzle2006-03-211-1/+1
| | | | | | | | | | forthcoming. This commit also has a number of style(9) fixes and minor corrections so the code works better with the build system being used for non-FreeBSD builds. Many thanks to: Jaakko Heinonen, who proposed a mechanism for extended attribute support and implemented both the machine-independent portion and the Linux-specific portion.
* If opendir(".") fails after descending into a subdirectory viapeadar2006-02-221-1/+2
| | | | | | | | | | chdir(), be sure to undo the effects of the chdir before continuing. Without this, after hitting a directory with mode 0111 (for example), tar will get lost, and won't add any yet unvisted files to your archive. (Or possibly add the wrong files, I suppose...) Reviewed By: kientzle@
* Clarify some error messages.kientzle2005-05-081-2/+2
|
* bsdtar now uses the "tree" package instead of "fts" for walkingkientzle2005-04-241-0/+506
directory heirarchies.
OpenPOWER on IntegriCloud