| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* --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.)
|
|
|
|
|
|
| |
trailing '/' characters on include patterns for extraction.
Pointed out by: games/quakeforge port (thanks to Kris!)
|
|
|
|
| |
(as specified by Linux Standards Base, GNU tar, and 4.4BSD documentation)
|
|
|
|
| |
recognizes and decompresses .Z format.
|
|
|
|
|
|
|
|
| |
* Move format/compression reporting to end of output, since
we don't always know the input format until then.
* Set bsdtar exit value to 1 if any file could not be restored.
* Generate gtar-style warning when stripping leading '/' characters.
* Warn when removing symlinks.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
messages will be displayed only when there is, in fact, an error.
|
|
|
|
| |
blocks at a time, rather than using putc().
|
|
|
|
| |
Move global progname variable into struct bsdtar.
|
|
|
|
|
| |
gname_cache. Cache negative lookups to dramatically improve performance
building archives containing nonexistent uid/gid.
|
|
|
|
|
|
| |
* Remove terminal symlinks so they can be replaced.
* If -U, remove intermediate symlinks as well
* Otherwise, refuse the extraction
|
| |
|
|
|
|
| |
Make indentation of tar_longopts array more consistent.
|
|
|
|
| |
even though POSIX requires it. <sigh>
|
|
|
|
|
|
|
| |
systems. The fts.h here is an exact copy of include/fts.h (except for
an initial explanatory comment and the revision tags, of course). The
fts.c here is slightly modified from lib/libc/gen/fts.c so it can
compile correctly on non-FreeBSD systems.
|
| |
|
|
|
|
|
| |
Thanks to: Juergen Lock for his continuing patience
while I botch his patches.
|
| |
|
|
|
|
|
| |
(fflags support on Linux, nanosecond timestamp portability, enable
64-bit file offsets)
|
|
|
|
|
|
|
|
| |
directory, then a file with that symlink as a prefix can drop a file
outside of the current directory, which can be a security hole.
Plug this hole by refusing to extract files if a prefix of the
pathname is a symlink. The -P option disables this check.
|
|
|
|
| |
now libarchive actually supports the underlying request.)
|
|
|
|
| |
Pointed out by: David Schultz
|
|
|
|
| |
reference to libarchive-formats(5).
|
|
|
|
|
| |
Also, bump up the default copy buffer from 8k to 64k
to improve performance.
|
|
|
|
|
|
|
| |
was just looked up by get{pw,gr}id(). Otherwise, it
returns a NULL name unless it's already in the cache.
Credit to Juergen Lock.
|
| |
|
|
|
|
|
|
| |
default "tar" command by defining WITH_BSDTAR.
Note: "gtar" and "bsdtar" commands both exist regardless.
|
|
|
|
| |
This allows bsdtar to compile on FreeBSD 4.x.
|
|
|
|
|
|
|
|
| |
table for the hardlink cache. This dramatically improves
performance when archiving millions of hardlinked files.
While I'm here, clean up some style bugs (per Bruce Evans)
and clarify some comments.
|
|
|
|
|
| |
almost 1/2 of the CPU time required to create an uncompressed archive
and makes a noticable reduction in wallclock time.
|
|
|
|
| |
to free() the memory used to store the filename.
|
|
|
|
|
| |
a stack-allocated buffer for safe_fprintf formatting.
Only if the result is too large do we resort to malloc.
|
|
|
|
| |
Also, add -h as a synonym for -H, for Linux Standards Base compliance.
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
| |
Generally clean up Makefile, remove dmalloc references from source
(there are better ways to do this than pollute the FreeBSD src tree).
|
|
|
|
|
|
|
|
| |
While I'm here, add a couple of extra sanity-checks to
the argument parsing (reject -j -z, for instance) and
update the docs a bit.
Requested by: most everyone ;-)
|
| |
|
|
|
|
| |
(Required by pkg_create.)
|
| |
|
| |
|
|
|