| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sometimes it makes sense to extract or list a directory contained in
an archive without also doing the same for the content of the
directory, i.e. allowing -n (= --no-recursion) in combination with the
x and t modes.
bsdtar uses the match functionality in libarchive to track include
matches. A new libarchive API call
archive_match_set_inclusion_recursion() gets introduced to
influence the matching behavior, with the default behavior as before.
Non-recursive matching can be achieved by anchoring the path match at
both start and end. Asking for a directory which itself isn't in the
archive when in non-recursive mode is an error and handled by the
existing mechanism for tracking unused inclusion entries.
|
|
|
|
|
|
|
|
|
| |
identifiers for which there is both a struct and a function. MinGW uses
a #define for setting struct stat to be the right struct, so doing #undef
stat to clear the way for a #define for stat() the function
inadvertantly clobbers the selected stat struct. To avoid this, we
define la_stat() to _la_stat on Windows and stat() elsewhere, and then
use la_stat() instead of stat().
|
| |
|
|
|
|
| |
Sponsored by: Tarsnap Backup Inc.
|
| |
|
|
|
|
|
|
| |
Avoid repeating the signature declaration in every source that uses it.
While at it, constify internal __archive_get_date implementation to
keep signatures consistent.
|
|
|
|
|
|
|
|
|
| |
Key problem: We were using archive_read_format_raw() to read
the exclude file which does not accept empty files.
Enabling archive_read_format_empty() and reworking the
end-of-input handling fixed this.
Also add a test for this case to prevent it from regressing.
|
|
|
|
|
| |
There are both an ASCII and an Unicode variant for most of the Win32 API.
Fix some inconsistent uses.
|
| |
|
| |
|
|
|
|
|
|
| |
Do not assign the return value of realloc into the variable that has
the original pointer because if realloc failed we will lose the chance
to release the address.
|
| |
|
| |
|
|
|
|
| |
into archive_match_exclude_entry().
|
|
|
|
|
|
| |
archive_match_include_pattern_from_file(_w) reading exclusion/inclusion
patterns from a file. And so retire lafe_exclude_from_file() and
lafe_include_from_file because we can use new APIs instead.
|
|
|
|
| |
current.
|
| |
|
|
|
|
|
| |
- Update comments.
- Make variable names meaningful.
|
| |
|
|
|
|
|
| |
Windows version respectively. And this reduces redundancy code at the Posix
version of those functions.
|
| |
|
| |
|
|
|