]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
Sync bsdtar with 9-CURRENT:
authormm <mm@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Aug 2011 08:00:46 +0000 (08:00 +0000)
committermm <mm@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Aug 2011 08:00:46 +0000 (08:00 +0000)
commit088fdc9be23a30759c906a6390805fb6f77818b2
tree1c1e8cf65592f8fdc0492257464bf624c23d0004
parent492131597bd95e634fb87af7d23e8a145269c2bb
Sync bsdtar with 9-CURRENT:

MFC on usr.bin/bsdtar:
203569,203571,203586-203590,203593-203594,204329,205076,206463-206466,
206484-206485,206487,207786,207790-207791,208028,209152,210720,213469,
223541,223573,224153,224158

MFC 203569 (kientzle):
bsdtar doesn't actually know what compression is supported by libarchive
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.

MFC 203571 (kientzle):
Fill in some missing error handling, be a little more careful about
error reporting, prefer int64_t to off_t.

MFC 203586 (kientzle):
Trim out some unused configuration variables, remove
some unused headers, etc.

MFC 203587 (kientzle):
Minor code rework.

MFC 203588 (kientzle):
Restructure the logic that determines when we're crossing a mount
point.  In particular, this carves out a place for detecting and
excluding synthetic or network filesystems.

MFC 203589 (kientzle):
Various portability workarounds for non-FreeBSD platforms.

MFC 203590 (kientzle):
Style & Portability:  Use archive_entry methods to examine
file information, change some functions to static, remove
some unused headers.

MFC 203593 (kientzle):
Merge a bunch of refactoring from Joerg Sonnenberger to
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.

MFC 203594 (kientzle):
Simplify, remove unnecessary code.

MFC 204329 (ru)
Fixed dependencies (make checkdpadd).

MFC 205076 (uqs):
Fix several typos in macros or macro misusage.

Found by: make manlint

MFC 206463 (kientzle):
Correct the markup for the -s option,
document the iso9660:rockridge and mtree:indent options

MFC 206464 (kientzle):
Remove an unnecessary include and conditionalize some code.

MFC 206465 (kientzle):
Consistently specify O_BINARY when opening files.

MFC 206466 (kientzle):
Fix -X.

MFC 206484 (kientzle):
Diff reduction against bsdtar 2.8.3

MFC 206485 (kientzle):
Diff reduction against bsdtar 2.8.3

MFC 206487 (kientzle):
If a file is specifically both included and excluded, then:
 * It is not extracted (because it is excluded)
 * If it's not present in the archive, then an error is
   reported (because the file was requested and not found)
 * If it is present in the archive, no error is reported.
Previously, this would always report an error because the
exclusion prevented the entry from matching the inclusion.

Also, tar is now more reluctant to report unmatched inclusions.
Previously, "tar x file1 'file*'" against an archive that contained a
single entry "file1" would match file1 and then report an error for
the second pattern because it wasn't matched.  It now considers both
inclusions to be matched and reports no error.

MFC 207786 (kientzle):
Various manpage updates, including many long-option synonyms that were previously
undocumented.

MFC 207790 (kientzle):
Config updates.

MFC 207791 (kientzle)
FreeBSD is now using bsdtar 2.8.3.

MFC 208028 (uqs):
mdoc: move remaining sections into consistent order

This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.

Found by: mdocml lint run

MFC 209152 (kientzle):
If the compressed data is larger than the uncompressed,
report the compression ratio as 0% instead of displaying
nonsense triggered by numeric overflow.  This is common
when dealing with uncompressed files when the I/O blocking
causes there to be small transient differences in the
accounting.

Thanks to: Boris Samorodov

MFC 210720 (joel):
Fix typos.

MFC 213469 (kientzle):
Recognize both ! and ^ as markers for negated character classes.

Submitted by: Mykola Dzham

MFC 223541 (kientzle):
If there is a read error reading Y/N confirmation from the keyboard,
exit immediately with an error.

If there is an error opening or reading a file to put into the archive,
set the return value for a deferred error exit.

MFC 223573 (kientzle):
The --newer-than test should descend into old
directories to look for new files.

MFC 224153 (mm):
Update bsdtar to 2.8.4
Use common code from lib/libarchive/libarchive_fe

MFC 224158 (mm):
Fix accidential commit part:
Include "bsdtar_platform.h" instead of "lafe_platform.h"

git-svn-id: svn://svn.freebsd.org/base/stable/8@224563 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
35 files changed:
usr.bin/tar/Makefile
usr.bin/tar/bsdtar.1
usr.bin/tar/bsdtar.c
usr.bin/tar/bsdtar.h
usr.bin/tar/bsdtar_platform.h
usr.bin/tar/cmdline.c
usr.bin/tar/config_freebsd.h
usr.bin/tar/err.c [deleted file]
usr.bin/tar/getdate.c
usr.bin/tar/matching.c [deleted file]
usr.bin/tar/read.c
usr.bin/tar/subst.c
usr.bin/tar/test/Makefile
usr.bin/tar/test/main.c
usr.bin/tar/test/test.h
usr.bin/tar/test/test_0.c
usr.bin/tar/test/test_basic.c
usr.bin/tar/test/test_copy.c
usr.bin/tar/test/test_empty_mtree.c [moved from usr.bin/tar/err.h with 69% similarity]
usr.bin/tar/test/test_help.c
usr.bin/tar/test/test_option_T_upper.c [moved from usr.bin/tar/test/test_option_T.c with 66% similarity]
usr.bin/tar/test/test_option_q.c
usr.bin/tar/test/test_option_r.c [new file with mode: 0644]
usr.bin/tar/test/test_option_s.c
usr.bin/tar/test/test_patterns.c
usr.bin/tar/test/test_patterns_2.tar.uu
usr.bin/tar/test/test_patterns_3.tar.uu
usr.bin/tar/test/test_patterns_4.tar.uu
usr.bin/tar/test/test_stdio.c
usr.bin/tar/test/test_strip_components.c
usr.bin/tar/test/test_symlink_dir.c
usr.bin/tar/test/test_version.c
usr.bin/tar/tree.h
usr.bin/tar/util.c
usr.bin/tar/write.c