summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
Commit message (Collapse)AuthorAgeFilesLines
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Add a fallback version of fnmatch() to the bsdtarkientzle2004-12-223-9/+170
| | | | | | | | | source code. Include configure logic to pick up the system one when it exists and use the fallback version when it doesn't exist. Set the default for FreeBSD to use the system version. With this, bsdtar should now be quite portable.
* GC an unused #includekientzle2004-12-221-1/+0
|
* Fix -W long option handling.kientzle2004-12-221-5/+15
| | | | | | | | | | | In particular: -W excl=text fails because "excl" is a prefix of both "exclude" and "exclude-from". But, -W exclude=text is okay because it matches "exclude" exactly. Thanks to: Jose F Nieves MFC after: 7 days
* Portability: the included fts.c should nowkientzle2004-12-222-2/+2
| | | | | | | compile on many non-FreeBSD systems, including Linux, Solaris, Darwin, etc. Thanks to: many people who pointed out the same portability problem
* Use a relative symlinking so that "tar" also works in /stand.ru2004-11-121-1/+1
|
* FreeBSD does have uintmax_t, so it can correctlykientzle2004-11-061-0/+1
| | | | | | print out very large file sizes. Thanks to: Yar Tikhiy
* Correct error handling on failed writeskientzle2004-11-052-5/+3
| | | | to the archive.
* getopt(3) prints an "unrecognized option" warning for me, so Ikientzle2004-10-171-1/+0
| | | | | | shouldn't print another. MFC after: 15 days
* Cosmetic goof: Use two spaces in "Jan 03 2004" but only one in "Jan 03 12:32"kientzle2004-10-171-1/+1
| | | | MFC after: 15 days
* Make -C and -T work correctly together.kientzle2004-08-281-4/+5
| | | | | MFC after: 3 days Thanks to: Guy Helmer
* Document the -O option's new behavior in the presence of -t.kientzle2004-08-271-2/+4
| | | | MFC after: 3 days
* Support -t -O as in gtar. Perversely enough, -O means "send to stderr"kientzle2004-08-272-11/+16
| | | | | | | when used with -t, "send to stdout" when used with -x. Thanks to: Ryan Hamilton for pointing out this odd beast MFC after: 3 days
* Permit -P to be combined with -t. (It's a no-op then, just as in gtar.)kientzle2004-08-261-2/+0
|
* Tell getopt to accept the (already-implemented) -I option.kientzle2004-08-261-1/+1
|
* Make -I and --files-from be synonyms for -Tkientzle2004-08-131-0/+4
|
* gtar uses -F for another purpose, so bsdtar no longer treats it as akientzle2004-08-083-20/+18
| | | | | | synonym for --format. Update the man page to reflect this. While I'm here, change the man page to document "tar" rather than "bsdtar," update some comments about -l compatibility and fix a few grammar nits.
* Better low-memory handling: If the link cache runs out of memory, justkientzle2004-08-081-35/+36
| | | | | | throw out the whole thing and stop tracking links entirely. That will break all remaining hardlinks, but should free up enough memory to let everything finish.
* Move the smart chdir logic into a couple of utility functions in util.c.kientzle2004-08-085-85/+66
| | | | | Then use them to provide consistent -C support throughout the program. Thanks to: Christoph Mallon
* It shouldn't be an error to specify the same mode twice: allow -cc but not -ct.kientzle2004-08-082-50/+38
| | | | | Thanks to: Christoph Mallon (whose proposed patch was actually simpler than what I ended up with)
* Another pointy-hat problem: PACKAGE_VERSION macro is set inkientzle2004-08-082-3/+0
| | | | | CFLAGS, it shouldn't be in bsdtar_platform.h. Thanks to: Andrey Chernov for looking over my shoulder so much lately.
* Minor portability fixes. bsdtar now compiles on Win32/cygwin, thoughkientzle2004-08-081-2/+18
| | | | it doesn't yet seem to work entirely correctly.
* Add --totals option. Unlike gtar, this reports the bytes actuallykientzle2004-08-074-3/+25
| | | | | written to the archive, not the ones written to the compressor. For uncompressed archives, these numbers are the same, of course.
* Linux port corrections:kientzle2004-08-073-5/+6
| | | | | | * Add a more reasonable default device for linux * Add an autoconf check for the FNM_LEADING_DIR extension (which isn't yet obeyed in the code)
* Add "make distfile" capabilities to bsdtar, including informationalkientzle2004-08-077-50/+251
| | | | COPYING file and some conditional compilation cleanups.
* Ensure that there's always a space between the user name andkientzle2004-08-051-1/+1
| | | | group name in -tv output format.
* GNU and POSIX disagree about -o and -l.kientzle2004-08-032-22/+70
| | | | | | | | | | | | For -l, upset everyone by breaking it. Specifically, -l now produces a lengthy error message that suggests --check-links (POSIX -l) or --one-file-system (GNU -l) instead. However, if POSIXLY_CORRECT is set, use the POSIX interpretation. For -o, please everyone by making it work both ways: * -xo uses POSIX behavior * -co uses "almost GNU" behavior (as close as we can get until libarchive implements a true V7 tar format)
* Correct the explanation of the -X option.kientzle2004-08-011-3/+5
| | | | Thanks to: Pav Lucistnik
* Improve portability to FreeBSD 4.kientzle2004-07-301-0/+6
| | | | Thanks to: Barry Bouwsma
* Fix comment.kientzle2004-07-301-1/+1
| | | | Thanks to: Johan Karlsson
* Add a --version option to bsdtar that prints the versions ofkientzle2004-07-262-4/+21
| | | | | both bsdtar and libarchive. Of course, this requires that bsdtar have a version number. Let's call this 1.00, shall we? ;-)
* A bunch of style and security fixes (error checking return values, etc),kientzle2004-07-254-35/+70
| | | | mostly from: Tim J Robbins
* Of course, I meant POSIX.1-1996, not 1997.kientzle2004-07-251-1/+1
| | | | Thanks to: Andrey Chernov
* A bunch of stuff from Christoph Mellon:kientzle2004-07-247-74/+77
| | | | | | | | * Whitespace fixes * Check some malloc calls * Simplify long_help formatting * Spell "LINUX" -> "linux" * A few other miscellaneous style improvements
* My bad: /dev/sa0, no 'r'kientzle2004-07-211-1/+1
| | | | Thanks (and many apologies) to: Cristoph Mallon
* Guard against argv[0] being NULL.kientzle2004-07-191-6/+11
| | | | Thanks to: Tim J Robbins
* Fix some misspellings, document the TAPE environmentkientzle2004-07-191-2/+16
| | | | variable and the default tape device.
* Remove unused user_uname variable.kientzle2004-07-172-16/+8
| | | | | | Add range-checking to argument of -b. Thanks to: Tim J Robbins
* Make bsdtar the default system tar. This makes /usr/bin/tar a symlinkkientzle2004-07-171-1/+1
| | | | | pointing to /usr/bin/bsdtar by default. To make it point to /usr/bin/gtar, you can define WITH_GTAR.
* Validate -o usage. Strictly speaking, -o only makes sense with -x,kientzle2004-07-172-0/+8
| | | | | | of course, but I make an effort to accomodate GNU tar scripts that use -o with -c (with a meaning that totally contradicts SUSv2) by only issuing a benign warning message in that case.
* Make the day/month ordering dependent on the current locale bykientzle2004-07-154-4/+17
| | | | | testing the locale at program startup and setting a flag, then using that flag to determine appropriate strftime() arguments.
* Mimic ls(1) by putting an extra space before the year in old dateskientzle2004-07-121-1/+1
|
* Fix tab/space screwup in long_help()kientzle2004-07-121-1/+1
|
* Fixed cross-references in SEE ALSO.ru2004-07-041-1/+1
| | | | Emininated double space and hard sentence breaks.
* Pass the pointy hat, please:kientzle2004-07-041-2/+2
| | | | All of --help should go to stdout, not some to stdout and some to stderr.
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Add yet another synonym for -n.kientzle2004-06-281-0/+1
|
* Update -p:kientzle2004-06-271-1/+2
| | | | | | | * Don't change the umask; the library now ignores the umask if you set EXTRACT_PERM * Set the EXTRACT_ACL and EXTRACT_FFLAGS bits (used to be controlled by EXTRACT_PERM).
* Warn about stripping leading '/' when creating archives.kientzle2004-06-271-1/+8
|
* Augment the -T handling:kientzle2004-06-276-98/+161
| | | | | | | | | | | | * Add --null option (sort #defines here) * Add process_lines function to util.c that reads newline-terminated or null-terminated lines (with self-sizing buffers, etc) and iteratively invokes a provided function. Use this to dramatically simplify: -T handling for -c, --exclude-from-file, and --include-from-file. * Add -T handling to -x (via include_from_file) Hopefully, this will fix the openoffice port and a couple of others that rely on -T and --null.
OpenPOWER on IntegriCloud