| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This flag changes the way that regular files are extracted:
Instead of removing existing files first and re-creating them in
order to replace their contents, a temporary file is created and
when writing to the temporary file is completed, the file is
rename(2)d to the final destination name.
This has the effect of presenting a consistent view of the file to
the system (either the file with the new contents or the file with
the old contents). Removing and overwriting the file has the
undesired side effect that the the system can either not see the
file at all (from the time it is being removed till the time it is
being re-created), or worse it can see partial file contents. This
is problematic when extracting system files (for example shared
libraries).
If the existing file that is going to be overwritten is a hard link,
for now we unlink it before calling rename(2). This can be done
correctly by creating a hardlink to a tmpnam(3) generated file
and then use rename(2), but that is fairly intrusive and requires
refactoring.
Fixes #1289
|
|
|
|
| |
Found by LGTM.com code analysis
|
|
|
|
| |
Fixes #999
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Allow enabling and disabling reading or writing of:
Access Control Lists (--acls, --no-acls)
Extended file flags (--fflags, --no-fflags)
Extended attributes (--xattrs, --no-xattrs)
Mac OS X metadata in AppleDouble (--mac-metadata, --no-mac-metadata)
Make --disable-copyfile an alias to --no-mac-metadata.
|
| |
|
| |
|
|
|
|
|
|
|
| |
flags which might prevent the removal or modifiction of files to
be cleared before attempting to remove them.
Sponsored by: DARPA, AFRL
|
|
|
|
|
|
|
|
|
| |
This option suppresses both archiving and
restoring xattrs. The latter relies on existing
machinery; for the former, I've added a
ARCHIVE_READDISK_NO_XATTR flag to archive_read_disk.
Caveat: I've not implemented any tests for these new features.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This option is an alias for --options read_concatenated_archive
introduced for compatibility with GNU tar.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
|
|
|
|
|
|
|
| |
This change is mainly meant for Windows regex support, where PCRE Windows development is much
more active than development of the regex library found in the GNUWin32 packages. I found that
the latest release of PCRE built right out of the box, unlike the GNUWin32 regex library released
6 years ago which failed to build from source for me using the mingw toolchain.
|
|
|
|
|
| |
variables to set default options to writing or reading archives with
bsdtar.
|
|
|
|
|
| |
a file which was compressed before archived from automatically
HFS+ Compression.
|
|
|
|
| |
- bsdtar provides --hfsCompression option.
|
|
|
|
|
| |
This automatically decides on a creation format and filters by
the archive suffix.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
enable only including files and directories older than specified date or file.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
points if user requests.
SVN-Revision: 4186
|
|
|
|
|
|
|
|
| |
archive_read_disk_honor_nodump and
archive_read_disk_disable_mac_copyfile.
SVN-Revision: 4184
|
|
|
|
|
|
|
|
|
| |
functions.
- Remove libarchive_fe/matching.[ch], which are no longer needed.
- Move cpio/test/test_pathmatch.c into libarchive/test/test_archive_pathmatch.c.
SVN-Revision: 4168
|
|
|
|
|
|
|
|
|
| |
in libarchive library.
This can fix issue 211. This reduce platform specific code in bsdtar, especially a check of
nodump flag, and, of course, a use of Windows APIs.
SVN-Revision: 4089
|
|
|
|
|
|
| |
platforms that support times before the epoch.
SVN-Revision: 3762
|
|
|
|
|
|
|
|
|
|
| |
targets get properly rewritten by default.
Adjust the -s parser so that symlink and hardlink target
rewriting is enabled by default and the 's' or 'S' flags
disable both.
SVN-Revision: 3676
|
|
|
|
| |
SVN-Revision: 3591
|
|
|
|
|
|
| |
that break any usage of names "optarg" or "option".
SVN-Revision: 2979
|
|
|
|
|
|
|
|
|
|
| |
This just involves reworking tar's extraction routines slightly to use
archive_read_extract2() with a custom-configured archive_write_disk
object, instead of the more convenient archive_read_extract()
interface that automatically builds a standard archive_write_disk
object.
SVN-Revision: 2849
|
|
|
|
|
|
|
|
|
|
|
| |
to be archived dynamically:
* At least 64k
* At least as large as the -b setting
In particular, this should speed up things noticably when large -b
values are in use. This is also the first cut at aligning the copy
buffer so we can take advantage of O_DIRECT someday.
SVN-Revision: 2504
|
|
|
|
|
|
|
|
| |
Simplify the handling of -b values by setting
a default early and then just using the value
instead of duplicating the logic.
SVN-Revision: 2503
|
|
|
|
| |
SVN-Revision: 2373
|
|
|
|
|
|
|
|
|
|
|
| |
These allow you to override the user/group information both
when creating an archive and when restoring an archive.
I've also reimplemented --numeric-owner to be a synonym
for --gname="" --uname="".
Still needs tests...
SVN-Revision: 2349
|
|
|
|
| |
SVN-Revision: 2227
|
|
|
|
|
|
| |
Idioms like "if (!disabled)" are really hard to read.
SVN-Revision: 1853
|
|
|
|
|
|
|
| |
This part adds probes for the copyfile.h header, and adds a new command-line
option --disable-copyfile, which does nothing on non-MacOS systems.
SVN-Revision: 1852
|
|
|
|
|
|
|
| |
display 64-bit values is getting to be real PITA. Just roll our
own conversion and use that.
SVN-Revision: 1562
|
|
|
|
|
|
|
|
| |
simpler and gives a lot more information. In particular,
it reports total bytes in/out, total files and compression
ratio, in addition to reporting the current file being processed.
SVN-Revision: 1223
|
|
|
|
| |
SVN-Revision: 1163
|
|
|
|
| |
SVN-Revision: 1118
|
|
|
|
|
|
|
| |
for filter/compressors as well as format handlers.
On write, set options before we open the file.
SVN-Revision: 857
|