summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
Commit message (Collapse)AuthorAgeFilesLines
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+1
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* Fixed dependencies (make checkdpadd).ru2010-02-251-1/+2
|
* Fix common misspelling of hierarchyuqs2010-02-203-3/+3
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* Simplify, remove unnecessary code.kientzle2010-02-071-30/+10
|
* Merge a bunch of refactoring from Joerg Sonnenberger tokientzle2010-02-0713-433/+724
| | | | | | isolate common code used by tar and cpio (and useful to other libarchive clients). The functions here are prefixed with "lafe" (libarchive front-end) to indicate their use.
* Style & Portability: Use archive_entry methods to examinekientzle2010-02-072-40/+24
| | | | | file information, change some functions to static, remove some unused headers.
* Various portability workarounds for non-FreeBSD platforms.kientzle2010-02-072-6/+49
|
* Restructure the logic that determines when we're crossing a mountkientzle2010-02-071-8/+29
| | | | | point. In particular, this carves out a place for detecting and excluding synthetic or network filesystems.
* Minor code rework.kientzle2010-02-071-21/+8
|
* Trim out some unused configuration variables, removekientzle2010-02-074-65/+0
| | | | some unused headers, etc.
* Fill in some missing error handling, be a little more careful aboutkientzle2010-02-062-17/+18
| | | | error reporting, prefer int64_t to off_t.
* bsdtar doesn't actually know what compression is supported by libarchivekientzle2010-02-062-42/+11
| | | | | and it should not pretend that it does. It should just pass along the user's request and handle an error if it's not supported.
* Refactor the siginfo/sigusr1 handling. The read/write reportingkientzle2010-02-067-202/+146
| | | | | | | | | is sufficiently different that it was simpler to just put separate reporting functions into read.c and write.c rather than try to have a single all-purpose reporting function. Switch to a custom function for converting int64_t to a string; in the portable version, this saves a lot of configuration headaches trying to decipher the platform printf().
* Remove all traces of an experiment for handling "root" on Windows systems.kientzle2010-02-062-7/+6
|
* Reformat the Makefile slightly.kientzle2010-02-061-1/+11
|
* Allow -b up to 8192. I've had reports from people who routinelykientzle2010-02-061-2/+2
| | | | | | use -b 2048 (1MiB block size). Setting the limit to 8192 should allow some room for growth while still helping people who mistakenly put in byte counts here instead of block counts.
* Diff reduction compared to portable bsdtar 2.8: Move thekientzle2010-02-0612-184/+271
| | | | | program name into a global, which eliminates an extra argument from a lot of places.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-022-2/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+2
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-2/+0
| | | | Tested with: make universe
* Make sure to use up-to-date libarchive header files from source tree whenpjd2009-09-071-1/+1
| | | | | | | compiling tar and not the ones from /usr/include/. Reviewed by: kientzle Approved by: kientzle
* Make -lcrypto usage dependent on whether or not we're building with OpenSSL.kientzle2009-04-181-1/+5
|
* Merge remaining changes from libarchive.googlecode.com:kientzle2009-04-176-42/+150
| | | | | | | | * Add xz and lzma compression options * Rename --format-options to simply --options * Add --same-owner for GNU tar compat * Add -lmd and -lcrypto to fix link * Documentation
* Set options before opening the archive.kientzle2009-04-171-7/+10
| | | | Catch and report close-time errors.
* Minor portability improvement in calls to ctype.h macros.kientzle2009-04-171-2/+2
|
* Merge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.kientzle2009-04-1710-52/+58
|
* Update version to 2.6.901a to indicate this is synced up with r745 ofkientzle2009-03-081-1/+1
| | | | libarchive.googlecode.com (except for the lzma/xz support).
* Merge r492 from libarchive.googlecode.com: First cut at exposing thekientzle2009-03-085-0/+29
| | | | new options mechanism to userland. Documentation pending...
* Match a comment to reduce differences with libarchive.googlecode.com.kientzle2009-03-082-1/+5
|
* Merge r709,r710 from libarchive.googlecode.com: More work onkientzle2009-03-083-31/+779
| | | | Windows support.
* Merge r687-689,691,693-701,720 from libarchive.googlecode.com:kientzle2009-03-086-822/+1102
| | | | | | | | | | | | Translate getdate.y into C for portability. Make the get_date() function easier to test as well: * Have it accept a time_t "now" to use as a reference so that test code can verify relative time specifications against known starting points. * Set up default date after parsing the string so that we can use the specified timezone (if any) instead of the local default. Otherwise, local DST makes it almost impossible to reliably test time specifications such as "sunday UTC"
* Merger r629-631,633-646,648,654,678,681,682 from libarchive.googlecode.com:kientzle2009-03-0823-66/+733
| | | | | Many changes for Windows compatibility. bsdtar_test now runs successfully on both POSIX platforms and Windows.
* Merge r368,496,625,626 from libarchive.googlecode.com: A number ofkientzle2009-03-082-36/+83
| | | | | style and portability tweaks to the test harness. Most significantly, don't use getopt().
* Merge r622 from libarchive.googlecode.com: Avoid warning on platformskientzle2009-03-081-1/+1
| | | | that lack regex.h.
* Merge r552,r559 from libarchive.googlecode.com: High-resolution timekientzle2009-03-081-3/+10
| | | | support on Tru64, AIX, and GNU Hurd, thanks to Björn Jacke.
* Merge r529 from libarchive.googlecode.com: Fix how we read ext2fs_fs.hkientzle2009-03-081-4/+11
| | | | headers on Linux.
* Merge r435,r443 from libarchive.googlecode.com: Let the compiler optionskientzle2009-03-082-4/+4
| | | | determine how to read config.h.
* Merge r283,r423 from libarchive.googlecode.com: Use libarchive's newkientzle2009-03-083-530/+127
| | | | | | archive_read_disk API to pull metadata off of disk. This removes a lot of platform-specific knowledge of things like ACLs, file flags, and extended attributes from bsdtar.
* Merge r374 from libarchive.googlecode.com: Stupid typo in open() call. <sigh>kientzle2009-03-081-1/+1
|
* Merge r369 from libarchive.googlecode.com: Test -s option.kientzle2009-03-082-0/+96
|
* Merge r278 from libarchive.googlecode.com: Reduce the number ofkientzle2009-03-081-3/+5
| | | | | patterns tested here from 200 to 170, which seems to be the most that Cygwin can handle.
* Merge r273 from libarchive.googlecode.com: Use open() correctly.kientzle2009-03-081-1/+1
|
* Fix multiple -s options.kientzle2009-02-081-1/+1
| | | | MFC after: 7 days
* When copying file data to the archive, don't write morekientzle2009-02-081-1/+1
| | | | | | | | | than was read. This seems to have only affected the shar writer, since other formats proactively truncate output to the originally-advertised size. PR: bin/131244 MFC after: 7 days
* Spell "substitution" correctly.kientzle2008-12-151-3/+3
| | | | | | | PR: bin/128616 Submitted by: Jaakko Heinonen Pointy hat: Tim Kientzle MFC after: 30 days
* bsdtar is synced up with 2.5.903akientzle2008-12-061-1/+1
|
* bsdtar always supports long options now, so we can removekientzle2008-12-061-2/+2
| | | | a documentation disclaimer.
* Only use GCC-specific __dead2 marker when building with GCC.kientzle2008-12-062-1/+11
|
* When deciding which characters (of a filename, for instance)kientzle2008-11-292-49/+119
| | | | | | | | | | | | are safe to print, try to take into account the current locale. This iterates over output strings using mbtowc() to identify multi-byte sequences. If iswprint() claims the corresponding wide character is printable, the original bytes are passed through. Otherwise, we expand characters into C-style \-escape sequences. Submitted by: Michihiro NAKAJIMA MFC after: 30 days
* After visiting a subdirectory, we use chdir("..") orkientzle2008-11-273-19/+57
| | | | | | | | | | 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
OpenPOWER on IntegriCloud