| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
| |
understand which code paths aren't possible.
This commit eliminates 117 false positive bug reports of the form
"allocate memory; error out if pointer is NULL; use pointer".
|
|
|
|
|
|
|
| |
- Document --version.
Reviewed by: kientzle
MFC after: 1 week
|
|
|
|
|
| |
Fix a bug I introduced 7 minutes ago: clean up properly from archive_write
if we exit the argv-handling loop due to -C not having an argument.
|
|
|
|
| |
instead of using 64kB of stack space in copy_file_data and write_file_data.
|
|
|
|
|
|
|
|
|
| |
where it is used. [1]
Don't leak file descriptors in write_entry_backend if archive_write_header
returns ARCHIVE_FAILED.
Found by: Coverity Prevent [1]
|
|
|
|
|
| |
of write_entry. (This was perfectly safe, since archive_entry_free(NULL) is
a no-op, but adding the check back makes the style more consistent.)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
can include the filename when reporting errors.
Thanks to: Dan Nelson
|
| |
|
| |
|
|
|
|
|
|
|
| |
since they are only tested for zero/nonzero; but it's arguably a bad
idea to set a {-1, 0} variable to 1 (as happens in this code).
Found by: Coverity Prevent
|
|
|
|
|
|
|
| |
possibility of memory becoming undereferenceable when it is freed, this
change should have no effect on bsdtar behaviour.
Found by: Coverity Prevent
|
|
|
|
|
|
|
| |
glibc has a suitable regex implementation, but doesn't define this
constant.
Thanks to: Diego "Flameeyes" Pettenò
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In addition to a number of bug fixes and minor changes:
* --numeric-owner (ignore user/group names on create and extract)
* -S (sparsify files on extraction)
* -s (regex filename substitutions)
* Use new libarchive 'linkify' to get correct hardlink handling for
both old and new cpio formats
* Rework 'copy' test to be insensitive to readdir() filename ordering
Most of the credit for this work goes to Joerg Sonnenberger, who
has been duplicating features from NetBSD's 'pax' program.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hardlink table for two reasons: 1. If le->name is set to NULL, the
structure le won't be inserted into the table; 2. Even if le somehow
did manage to get into the table with le->name equal to NULL, we would
die when we dereferenced le->null before we could get to the point of
freeing the entry.
Remove the unnecessary "if (le->name != NULL)" test and just free the
pointer.
Found by: Coverity Prevent
|
|
|
|
| |
running into a namespace collision on an avian operating system.
|
|
|
|
|
|
| |
running 'tar ""' would print 'No memory' instead of the correct error
message, 'Must specify one of -c, -r, -t, -u, -x' if malloc is set to
System V mode (malloc(0) == NULL).
|
|
|
|
|
|
|
|
| |
(in fact, there has never been any way for it to be NULL, going all the
way back to revision 1.1 of this file), so remove the check and
unconditionally free entry.
Found by: Coverity Prevent
|
|
|
|
|
|
|
|
|
|
|
| |
handling to bsdtar. When writing archives (including copying via the
@archive directive) a line is output to stderr indicating what is being
done (adding or copying), the path, and how far through the file we are;
extracting currently does not report progress within each file, but
this is likely to happen eventually.
Discussed with: kientzle
Obtained from: tarsnap
|
|
|
|
|
|
|
|
|
|
|
| |
files if the existing file is newer than the archive entry).
Currently if any files are ignored, bsdtar will exit with a non-zero
exit status; this is likely to change in the future, but requires some
API changes in libarchive.
Discussed with: kientzle
Obtained from: tarsnap
|
|
|
|
|
|
| |
* --format can be used with -r or -u
* -o is a synonym for --format=ustar when used with -c, -r, or -u
Also, fix the erroneous sanity check that suppressed --format with -r or -u.
|
| |
|
|
|
|
| |
to run and maintain than the old scripts that used to be here.
|
|
|
|
|
| |
PR: bin/123246
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
instead of incrementing.
Pointy hat: me
Thanks to: Tomasz Przygoda
MFC after: 3 days
|
|
|
|
| |
a comment that got accidentally dropped.
|
| |
|
| |
|
|
|
|
|
|
| |
extension to GNU tar).
Thanks to: Joerg Sonnenberger
|
|
|
|
| |
Thanks to: Joerg Sonnenberger
|
| |
|
| |
|
|
|
|
| |
now that libarchive supports it.
|
|
|
|
|
|
| |
archives in regular files, since both are seekable.
Thanks to: Reinoud Zandijk (@netbsd.org)
|
|
|
|
|
|
|
|
| |
GNU tar changed -l to match SUSv2 a couple of years ago,
so bsdtar no longer needs to pander to this particular GNUism.
Thanks to: Debian maintainers
MFC after: 7 days
|
|
|
|
| |
better is almost ready to commit.
|
|
|
|
|
|
|
|
| |
* prototypes for optarg/optind on platforms that don't already have them
* Disambiguate version number macros
* Remove unnecessary PACKAGE_NAME macro
* Hook for forthcoming bsdtar test suite
* Sync version number up with the portable distribution
|
| |
|
| |
|
|
|
|
|
|
| |
(This does a couple of things that the standard library's strmode()
doesn't; it proved useful in bsdcpio as well, so I pushed it down
into libarchive.)
|
|
|
|
| |
(It's in the C source, just wasn't in the COPYING file until now.)
|
|
|
|
|
|
| |
tar compatibility.
Approved by: re (bmah)
|
|
|
|
|
|
|
| |
are specified with the "-W option=arg" syntax and the '=' is omitted.
MFC after: 3 days
Approved by: re (rwatson)
|
|
|
|
|
|
| |
Thanks to: Joerg Sonnenberger
Approved by: re (hrs)
MFC after: 3 days
|
|
|
|
|
|
|
| |
set the delayed return value and keep going.
Approved by: re (hrs)
MFC after: 7 days
|
|
|
|
|
|
|
|
|
| |
* Implement --use-compress-program using new libarchive feature.
* Minor portability improvement by adjusting casts used to
print out uids, gids, and device numbers.
Thanks to: Joerg Sonnenberger for the --use-compress-program implementation.
MFC after: 15 days
|