| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Make "make test" fully operational.
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
Use common code from lib/libarchive/libarchive_fe
Approved by: kientzle
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
| |
uname and gname weren't overwritten, so the
disk restore would use those to lookup the
original uid/gid again. Clearing the uname
and gname prevents this.
Reported by: swell.k
MFC after: 7 days
|
| |
|
|
|
|
|
|
|
|
|
| |
Also, change the existing -vi behavior to send the filenames to
stderr rather than stdout, as GNU cpio does.
PR: bin/141175
Submitted by: Philip Kizer
MFC after: 14 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
user or group Ids as well as user or group names.
In particular, this fixes freesbie2, which uses
-R 0:0 to copy a bunch of files so that the result
will be owned by root.
Also fixes a related bug that mixed-up the uid
and gid specified by -R when in passthrough mode.
Thanks to Dominique Goncalves for reporting this
regression.
Approved by: re (kib)
|
|
|
|
|
|
|
|
|
| |
more selective about what libarchive features we pull in:
* No compression support
* Only cpio and ustar writing
* Only cpio and tar/pax readers
This reduces a statically linked, stripped binary from 900k to 680k
and completely eliminates the dependency on libcrypto.
|
|
|
|
|
|
|
|
| |
* Lots of new tests.
* New -n / --numeric-uid-gid option
* More sanity-checking of arguments
* Various Windows portability improvements
* Sync up version number to 2.7.0
|
|
|
|
|
| |
code but should be a lot fewer cross-platform compatibility
headaches.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Lookup uname/gname if not provided by the archive (I copied the
uname/gname lookup cache from bsdtar)
* Format device number instead of size for device nodes
* Format date.
There's still a few improvements that I could copy from
bsdtar, especially the locale-aware safe_fprintf() code
and the locale-aware setup for day_first date formatting.
(And, of course, I need to think through a clean way to
push this stuff down into libarchive.)
Thanks to Peter Wemm for reminding me of this overlooked TODO item.
|
|
|
|
| |
information out of it. As reported by Giorgos Keramidas.
|
|
|
|
|
|
| |
archive_write_disk.
Update cpio to use this to emit block counts in -p mode.
Update cpio tests to verify these block counts.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In particular, this fixes the oddity that -dumpl would apply
umask to copied dirs (which are created in the target tree)
but not to "copied" files (which are only linked). After
this change:
$ ls -ld a a/b a/b/c
d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a
drwxr----x 3 tim tim 512 Jul 29 20:09 a/b
dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c
$ (echo a; echo a/b; echo a/b/c) | cpio -dumpl o
$ cd o
$ ls -ld a a/b a/b/c
d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a
drwxr----x 3 tim tim 512 Jul 29 20:09 a/b
dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c
|
|
|
|
| |
Thanks to: Erwin Lansing
|
| |
|
|
|
|
|
| |
other implementations, but it's clear that dirs and symlinks,
at least, shouldn't be hardlinked.
|
|
|
|
| |
comments to make this section of code a little clearer.
|
|
|
|
| |
linking them, with predictably bad results.
|
|
|
|
|
|
| |
check in -i mode unless --insecure is specified.
PR: bin/124924
|
|
|
|
|
|
|
| |
link, just ignore the -l option and copy the file instead.
In particular, this should fix the COPYTREE_* macros used in the
ports infrastructure which use -l to preserve space but often get
used for cross-device copies.
|
|
|
|
| |
to eliminate a callback.
|
|
A new implementation of cpio that uses libarchive as it's back-end
archiving/dearchiving infrastructure. Includes test harness;
"make check" in the bsdcpio directory to build and run the test
harness.
|