| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
particular, acl support is no longer enabled on FreeBSD 4, acl support
should be correctly enabled on Linux, dirent.d_namlen should be
correctly detected on platforms that support it.
Thanks to: Greg Lewis, Juergen Lock, and Jaakko Heinonen
|
|
|
|
|
|
| |
extraction and creation. While I'm here, fix a bug reported by Garrett
Wollman: when stripping the leading '/' from the path "/", don't produce
an entry with an empty name; produce "." instead.
|
| |
|
|
|
|
|
|
|
| |
switches to support selecting files by time of modification.
Special thanks to: Steven M. Bellovin, Rich $alz, and Jim Berets,
authors of the public-domain getdate.y date-parsing code.
|
|
|
|
| |
Thanks to: Sangwoo Shim
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
shouldn't print another.
MFC after: 15 days
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Then use them to provide consistent -C support throughout the program.
Thanks to: Christoph Mallon
|
|
|
|
|
| |
Thanks to: Christoph Mallon (whose proposed patch was actually
simpler than what I ended up with)
|
|
|
|
|
| |
written to the archive, not the ones written to the compressor.
For uncompressed archives, these numbers are the same, of course.
|
|
|
|
|
|
| |
* 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)
|
|
|
|
| |
COPYING file and some conditional compilation cleanups.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
both bsdtar and libarchive. Of course, this requires that bsdtar
have a version number. Let's call this 1.00, shall we? ;-)
|
|
|
|
| |
mostly from: Tim J Robbins
|
|
|
|
|
|
|
|
| |
* Whitespace fixes
* Check some malloc calls
* Simplify long_help formatting
* Spell "LINUX" -> "linux"
* A few other miscellaneous style improvements
|
|
|
|
| |
Thanks to: Tim J Robbins
|
|
|
|
|
|
| |
Add range-checking to argument of -b.
Thanks to: Tim J Robbins
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
testing the locale at program startup and setting a flag, then
using that flag to determine appropriate strftime() arguments.
|
| |
|
|
|
|
| |
All of --help should go to stdout, not some to stdout and some to stderr.
|
| |
|
|
|
|
|
|
|
| |
* 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).
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
This requires some non-trivial surgery to the options parsing.
While here, let people who only have getopt() access long options
through the -W longopt=value convention.
|
|
|
|
| |
Thanks to: Kris Kennaway for doing some gtar research for me.
|
|
|
|
|
|
|
| |
gtar, so that makes it easy to implement.
Required by: audio/timidity port
Thanks to: Kris Kennaway
|
|
|
|
| |
(gtar-compatible) one does require an argument.
|
| |
|
| |
|
|
|
|
|
| |
something else. I would really like a short option for
this, but all of the obvious ones conflict with something else.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Usage goes to stderr, not stdout
* Use correct argument markup
* bsdtar --help no longer exits with an error return code
* ensure that the word "bsdtar" appears in the first
line output from "bsdtar --help" (even if the program is
invoked as "tar")
In particular, scripts can now test for the presence of bsdtar.
For example, in /bin/sh:
if (tar --help 2>&1 | grep bsdtar >/dev/null 2>&1) then \
echo bsdtar; else echo not bsdtar; fi
|
|
|
|
|
| |
Pointed out by: devel/nspr port
Thanks to: Kris Kennaway
|
|
|
|
|
|
|
|
|
| |
--exclude='pattern'.
I should have added this a long time ago, since it's so useful for testing.
In particular, it allows me to select a few entries from a troublesome
archive so that I can easily focus my debugging efforts:
bsdtar -czf new.tgz --include='*foo*' @old.tgz
|
| |
|
|
|
|
|
|
| |
* --help produces long help message on systems with getopt_long
* -h with no other options also produces long help message
(If a mode is specified, -h has its usual meaning.)
|
|
|
|
| |
(as specified by Linux Standards Base, GNU tar, and 4.4BSD documentation)
|
|
|
|
| |
recognizes and decompresses .Z format.
|
| |
|
|
|
|
|
|
|
| |
Note that bsdtar's -o (which follows SUSv2) is not the same as GNU tar's -o.
In GNU tar, -o and --no-same-owner are not synonyms.
Pointed out by: Kris Kennaway (required by xpenguins port)
|
|
|
|
| |
Pointed out by: Kris Kennaway (unbreaks nspr port build)
|
| |
|
|
|
|
| |
needs it, but it does no harm for people to specify it.
|