mm
349e291a0a
Correctly link bsdcpio and bsdtar against libmd and libcrpyto
...
by applying the change from r221472 (libarchive).
Reviewed by: kientzle
Approved by: re (kib)
MFC after: 3 days
2011-08-01 08:22:40 +00:00
mm
8c65d0122a
Fix accidential commit part:
...
Include "bsdtar_platform.h" instead of "lafe_platform.h"
MFC after: 2 weeks
2011-07-17 21:57:10 +00:00
mm
867c8ddd4d
Update bsdtar to 2.8.4
...
Use common code from lib/libarchive/libarchive_fe
Approved by: kientzle
MFC after: 2 weeks
2011-07-17 21:33:15 +00:00
kientzle
63ee2d3048
The --newer-than test should descend into old
...
directories to look for new files.
PR: bin/150890
Submitted by: Tobias Herre
MFC after: 3 weeks
2011-06-26 17:54:11 +00:00
kientzle
d717d950fa
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.
PR: bin/154407
2011-06-25 16:27:49 +00:00
uqs
1f1cd9cdf4
Revert most of r210764, now that mdocml does the right
...
thing with empty quotation macros.
Requested by: Alex Kozlov
2010-12-28 10:08:50 +00:00
kientzle
6af162923c
Recognize both ! and ^ as markers for negated character classes.
...
Submitted by: Mykola Dzham
2010-10-06 04:30:40 +00:00
uqs
685dd51364
mdoc: make sure to pass at least one argument to quotation macros
2010-08-02 13:11:35 +00:00
joel
6da836a30b
Fix typos.
2010-08-01 09:10:09 +00:00
kientzle
3554fa67c2
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
2010-06-14 02:56:45 +00:00
uqs
64c451d29e
mdoc: move remaining sections into consistent order
...
This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.
Found by: mdocml lint run
Reviewed by: ru
2010-05-13 12:08:11 +00:00
mm
696cb26078
Enable liblzma support in libarchive
...
Adjust dependencies for programs using libarchive
Add xz and linkage against liblzma to rescue system
Approved by: kientzle, delphij (mentor)
MFC after: 2 weeks
2010-05-10 15:28:44 +00:00
kientzle
4ae7167075
FreeBSD is now using bsdtar 2.8.3.
2010-05-08 16:29:02 +00:00
kientzle
22b999b214
Config updates.
2010-05-08 16:28:22 +00:00
kientzle
5c64254a68
Various manpage updates, including many long-option synonyms that were previously undocumented.
2010-05-08 15:43:59 +00:00
kientzle
f0d40dc1be
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.
2010-04-11 18:44:42 +00:00
kientzle
dec738d25d
Diff reduction against bsdtar 2.8.3
2010-04-11 16:28:10 +00:00
kientzle
eec8ea9ab0
Diff reduction against bsdtar 2.8.3
2010-04-11 16:27:38 +00:00
kientzle
5dedc24a42
Fix -X.
2010-04-11 01:36:10 +00:00
kientzle
f669ae692f
Consistently specify O_BINARY when opening files.
2010-04-11 01:32:30 +00:00
kientzle
d4116626da
Remove an unnecessary include and conditionalize some code.
2010-04-11 01:31:50 +00:00
kientzle
da95b3559b
Correct the markup for the -s option,
...
document the iso9660:rockridge and mtree:indent options
2010-04-11 01:30:15 +00:00
uqs
8f141f1a13
Fix several typos in macros or macro misusage.
...
Found by: make manlint
Reviewed by: ru
Approved by: philip (mentor)
2010-03-12 10:01:06 +00:00
ru
4d27ff91d0
Fixed dependencies (make checkdpadd).
2010-02-25 20:24:19 +00:00
uqs
f41a820b03
Fix common misspelling of hierarchy
...
Pointed out by: bf1783 at gmail
Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
2010-02-20 10:19:19 +00:00
kientzle
fd70ced203
Simplify, remove unnecessary code.
2010-02-07 02:04:58 +00:00
kientzle
a405ab8bd4
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.
2010-02-07 02:00:26 +00:00
kientzle
e3debd74cb
Style & Portability: Use archive_entry methods to examine
...
file information, change some functions to static, remove
some unused headers.
2010-02-07 01:35:28 +00:00
kientzle
ec04c1933e
Various portability workarounds for non-FreeBSD platforms.
2010-02-07 01:26:45 +00:00
kientzle
38d0db1832
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.
2010-02-07 01:22:55 +00:00
kientzle
15e360bfc8
Minor code rework.
2010-02-07 01:16:05 +00:00
kientzle
8ceb112e10
Trim out some unused configuration variables, remove
...
some unused headers, etc.
2010-02-07 01:07:58 +00:00
kientzle
418133299a
Fill in some missing error handling, be a little more careful about
...
error reporting, prefer int64_t to off_t.
2010-02-06 20:41:25 +00:00
kientzle
6b176158d3
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.
2010-02-06 20:36:14 +00:00
kientzle
4392f2bf72
Refactor the siginfo/sigusr1 handling. The read/write reporting
...
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().
2010-02-06 20:27:36 +00:00
kientzle
dad3a1b37a
Remove all traces of an experiment for handling "root" on Windows systems.
2010-02-06 19:56:32 +00:00
kientzle
8f2c956ea0
Reformat the Makefile slightly.
2010-02-06 19:53:48 +00:00
kientzle
06dea2fd79
Allow -b up to 8192. I've had reports from people who routinely
...
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.
2010-02-06 19:48:59 +00:00
kientzle
cf5d23cf83
Diff reduction compared to portable bsdtar 2.8: Move the
...
program name into a global, which eliminates an extra
argument from a lot of places.
2010-02-06 19:44:37 +00:00
ed
9b380e30d4
Build usr.bin/ with WARNS=6 by default.
...
Also add some missing $FreeBSD$ to keep svn happy.
2010-01-02 10:27:05 +00:00
delphij
0842b7d53f
Revert most part of 200420 as requested, as more review and polish is
...
needed.
2009-12-13 03:14:06 +00:00
delphij
b963db4652
Remove unneeded header includes from usr.bin/ except contributed code.
...
Tested with: make universe
2009-12-11 23:35:38 +00:00
pjd
811a23dd7d
Make sure to use up-to-date libarchive header files from source tree when
...
compiling tar and not the ones from /usr/include/.
Reviewed by: kientzle
Approved by: kientzle
2009-09-07 06:37:44 +00:00
kientzle
392ab3c6f7
Make -lcrypto usage dependent on whether or not we're building with OpenSSL.
2009-04-18 06:03:09 +00:00
kientzle
4e8cb50d8b
Merge remaining changes from libarchive.googlecode.com:
...
* 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
2009-04-17 03:45:15 +00:00
kientzle
f1f2531950
Set options before opening the archive.
...
Catch and report close-time errors.
2009-04-17 03:40:40 +00:00
kientzle
a88f72ea58
Minor portability improvement in calls to ctype.h macros.
2009-04-17 03:37:09 +00:00
kientzle
1d72251133
Merge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.
2009-04-17 03:36:07 +00:00
kientzle
47f7c87c96
Update version to 2.6.901a to indicate this is synced up with r745 of
...
libarchive.googlecode.com (except for the lzma/xz support).
2009-03-08 06:20:35 +00:00
kientzle
26f0010266
Merge r492 from libarchive.googlecode.com: First cut at exposing the
...
new options mechanism to userland. Documentation pending...
2009-03-08 06:19:28 +00:00