summaryrefslogtreecommitdiffstats
path: root/usr.bin/cpio
Commit message (Collapse)AuthorAgeFilesLines
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-041-1/+1
| | | | | | | 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".
* MfP4: Preserve permissions by default.kientzle2008-07-301-0/+1
| | | | | | | | | | | | | | | | | | 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
* Add --no-preserve-owner, which seems to be required by some ports.kientzle2008-07-293-0/+5
| | | | Thanks to: Erwin Lansing
* Preserve ownership if cpio is run as root.kientzle2008-07-061-1/+2
|
* bsdcpio is now at version 1.0.0.kientzle2008-07-051-1/+1
|
* In -pl mode, only hardlink regular files. I need to testkientzle2008-07-051-6/+8
| | | | | other implementations, but it's clear that dirs and symlinks, at least, shouldn't be hardlinked.
* Remove an unused define.kientzle2008-07-051-1/+0
|
* Don't try to hardlink directories. While I'm here, expand somekientzle2008-07-011-3/+10
| | | | comments to make this section of code a little clearer.
* As reported by Alexey Shuvaev, -dumpl overwrote files afterkientzle2008-06-261-0/+2
| | | | linking them, with predictably bad results.
* In -p mode, don't gaurd against '..' in paths. We continue tokientzle2008-06-241-0/+1
| | | | | | check in -i mode unless --insecure is specified. PR: bin/124924
* If we're using -l and can't hardlink the file because of a cross-devicekientzle2008-06-211-3/+17
| | | | | | | 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.
* Rework line-processing framework to add support for --null andkientzle2008-06-214-62/+130
| | | | to eliminate a callback.
* Various long options for GNU cpio compat.kientzle2008-06-211-0/+8
|
* MfP4: test improvements, mostly for portability.kientzle2008-06-212-20/+68
|
* Include bsd.own.mk to pick up the definition of MK_GNU_CPIOdougb2008-06-161-0/+2
|
* 1. Make the BSD version of cpio the default [1]dougb2008-06-161-1/+1
| | | | | | | | | | | | | | | | | a. The BSD version will be built and installed unless WITHOUT_BSD_CPIO is defined. b. The GNU version will not be built or installed unless WITH_GNU_CPIO is defined. If this is defined, the symlink in /usr/bin will be to the GNU version whether the BSD version is present or not. When these changes are MFCed the defaults should be flipped. 2. Add a knob to disable the building of GNU grep. This will make it easier for those that want to test the BSD version in the ports. Approved by: kientzle [1]
* bsdcpio is always installed as 'bsdcpio', symlink it to 'cpio'kientzle2008-05-261-1/+4
| | | | only if WITH_BSDCPIO is defined.
* Initial commit of bsdcpio 0.9.11b.kientzle2008-05-2644-0/+5986
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.
OpenPOWER on IntegriCloud