| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
2-clause BSD license, update the year to 2007.
|
|
|
|
|
|
|
| |
message from the archive being written (not the message from the archive
being read, where no error has occurred).
MFC after: 3 days
|
|
|
|
|
|
|
| |
of @archive commands. This bug should be harmless as long as you don't
use an excessive number of @archive commands.
MFC after: 1 week
|
|
|
|
|
|
| |
by printing an error message and exiting with a non-zero status code.
MFC after: 1 week
|
|
|
|
| |
Thanks to: Stefan Farfeleder
|
|
|
|
|
|
|
|
| |
just archive it as a symlink, even if -h was specified.
Thanks to: Jin Guojun
PR: bin/95175
MFC After: 1 week
|
|
|
|
|
|
|
|
|
|
| |
forthcoming. This commit also has a number of style(9) fixes and
minor corrections so the code works better with the build system being
used for non-FreeBSD builds.
Many thanks to: Jaakko Heinonen, who proposed a mechanism for extended
attribute support and implemented both the machine-independent portion
and the Linux-specific portion.
|
|
|
|
|
|
|
|
| |
when list the archive contents, then try to extract selected files
(file selection always works against unedited pathnames). With this change,
-t always shows the pathnames as they appear in the archive.
Thanks to: Robert Watson
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This causes attempts to update a non-existent file to report
an actual error instead of triggering an assertion failure.
PR: bin/87911
Thanks to: roemer.ulrich
MFC after: 3 days
Note: This does not entirely fix bin/87911. I need to decide on
the "correct" response when someone tries to update a non-existent
archive file.
|
|
|
|
|
|
| |
pathname edits before comparing pathnames on disk to those in the archive.
Thanks to: Gareth Bailey, Lowell Gilbert
|
| |
|
|
|
|
| |
directory heirarchies.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
to the archive.
|
|
|
|
|
| |
MFC after: 3 days
Thanks to: Guy Helmer
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Then use them to provide consistent -C support throughout the program.
Thanks to: Christoph Mallon
|
|
|
|
|
| |
written to the archive, not the ones written to the compressor.
For uncompressed archives, these numbers are the same, of course.
|
|
|
|
| |
COPYING file and some conditional compilation cleanups.
|
|
|
|
| |
mostly from: Tim J Robbins
|
|
|
|
|
|
|
|
| |
* Whitespace fixes
* Check some malloc calls
* Simplify long_help formatting
* Spell "LINUX" -> "linux"
* A few other miscellaneous style improvements
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
While I'm here, add in a lot more error-checking around append_archive.
|
|
|
|
|
|
| |
Instead, display a warning, clean up, and let main() return the error.
In particular, this means that chdir() problems won't leave broken
archives, though they will prompt an error exit value.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
creating an archive.
Pointed out by: Failure to complain when building certain broken packages
(Thanks again to Kris Kennaway for finding this!)
|
|
|
|
|
| |
It is, in fact, perfectly legal to not specify a compression when
writing an archive. <sigh>
|
| |
|
|
|
|
| |
Pointed out by: njl, des.
|
| |
|
|
|
|
| |
messages will be displayed only when there is, in fact, an error.
|
|
|
|
| |
Move global progname variable into struct bsdtar.
|
|
|
|
|
| |
gname_cache. Cache negative lookups to dramatically improve performance
building archives containing nonexistent uid/gid.
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Generally clean up Makefile, remove dmalloc references from source
(there are better ways to do this than pollute the FreeBSD src tree).
|
|
|
|
| |
(Required by pkg_create.)
|
| |
|
| |
|