summaryrefslogtreecommitdiffstats
path: root/usr.bin/cpio
Commit message (Collapse)AuthorAgeFilesLines
* Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in tongie2015-10-124-104/+175
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the FreeBSD test suite functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided by upstream. A handful of testcases in lib/libarchive/tests have been disabled as they were failing when run with kyua test (see BROKEN_TESTS in lib/libarchive/tests/Makefile) As a sidenote: this removes the check/test targets from the Makefiles as they don't match the pattern used in the rest of the FreeBSD test suite. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
| * Revert r289133; retry the mergengie2015-10-112-0/+170
| |
| * MFhead @ r289132ngie2015-10-112-170/+0
| |
| * Integrate the rest of the pieces from libarchive into thengie2015-10-074-104/+173
|/ | | | FreeBSD test suite (cpio, tar)
* Add META_MODE support.sjg2015-06-131-0/+25
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-11/+3
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-0/+1
| |
| * Merge from headsjg2014-05-081-1/+1
| |\
| * \ Merge headsjg2014-04-281-1/+1
| |\ \
| * \ \ sync from headsjg2013-04-122-1/+21
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| | | | |
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-042-8/+7
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+25
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Convert to usr.bin/ to LIBADDbapt2014-11-252-11/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | Reduce overlinking
* | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|_|/ |/| | | | | | | | | | | from the latter.
* | | | NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-131-1/+1
| |_|/ |/| | | | | | | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* | | MFV r248590,248594:mm2013-03-222-1/+21
| |/ |/| | | | | | | | | | | | | | | | | | | Update libarchive to 3.1.2 Some of new features: - support for lrzip and grzip compression - support for writing tar v7 format - b64encode and uuencode filters - support for __MACOSX directory in Zip archives - support for lzop compresion (external utility)
* | Update libarchive to 3.0.4mm2012-07-282-8/+7
|/
* Update libarchive to 3.0.3mm2012-02-253-59/+8
| | | | | | | | | | | | | | Some of new features: - New readers: RAR, LHA/LZH, CAB reader, 7-Zip - New writers: ISO9660, XAR - Improvements to many formats, especially including ISO9660 and Zip - Stackable write filters to write, e.g., tar.gz.uu in a single pass - Exploit seekable input; new "seekable" Zip reader can exploit the Zip Central Directory when it's available; the old "streamable" Zip reader is still fully supported for cases where seeking is not possible. Full release notes available at: https://github.com/libarchive/libarchive/wiki/ReleaseNotes
* Use contrib sources for building libarchive, tar and cpio.mm2011-12-2249-7788/+23
| | | | | | Make "make test" fully operational. MFC after: 2 weeks
* Sync bsdcpio with vendor branch release/2.8:mm2011-12-201-1/+1
| | | | | | | | Revision 3770: Merge r3768 from trunk: Fix typo in dev/ino verification for cpio formats. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks
* Update libarchive, tar and cpio to version 2.8.5mm2011-12-201-1/+1
| | | | | | | | | | The following additional vendor revisions are applied: Revision 3740: Use archive_clear_error() to clear the error markers. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks
* Correctly link bsdcpio and bsdtar against libmd and libcrpytomm2011-08-011-2/+5
| | | | | | | | by applying the change from r221472 (libarchive). Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days
* Append to CPIO_SRCS instead of using TAR_SRCS,mm2011-07-171-2/+1
| | | | | | the variable name is misleading MFC after: 2 weeks
* Update bsdcpio to 2.8.4mm2011-07-1743-2282/+2692
| | | | | | | Use common code from lib/libarchive/libarchive_fe Approved by: kientzle MFC after: 2 weeks
* Fix typo in bsdcpio manual:gjb2010-09-061-2/+2
| | | | | | | | | | s/libarchive_formats/libarchive-formats PR: 150300 Submitted by: Kurt Jaeger <fbsd-pr at opsec dot eu> Patch by: Kurt Jaeger Approved by: keramida (mentor) MFC after: 1 week
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-1/+1
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Fix -R when used with -p. Previously, thekientzle2010-08-083-4/+18
| | | | | | | | | | 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
* Enable liblzma support in libarchivemm2010-05-102-4/+4
| | | | | | | | Adjust dependencies for programs using libarchive Add xz and linkage against liblzma to rescue system Approved by: kientzle, delphij (mentor) MFC after: 2 weeks
* bsdcpio 2.8.3kientzle2010-05-0815-562/+675
|
* Remove GNU cpio after fix of CVE-2010-0624.delphij2010-03-261-2/+0
| | | | | | | | | | | | | Note that this is actually a no-op for most users, as this GNU cpio was broken on -HEAD and 8-STABLE since last March until the recent fix. FreeBSD 8.0+ uses BSD cpio by default and the code is being actively maintained. Blessed by: kientzle With hat: secteam MFC after: 3 days
* Fixed dependencies (make checkdpadd).ru2010-02-251-2/+3
|
* Fix common misspelling of hierarchyuqs2010-02-201-1/+1
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* Support -V option to print a dot for each file processed.kientzle2010-01-303-3/+21
| | | | | | | | | 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
* Build usr.bin/ with WARNS=6 by default.ed2010-01-022-2/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* This addresses some issues with my earlier -R fix thatkientzle2009-07-062-66/+74
| | | | | | | | | | | | | | were pointed out by Brooks Davis and Alexey Dokuchaev: * It now tries to lookup arguments as names first, then tries to parse them as numbers. In particular, this makes the behavior consistent with POSIX conventions when usernames consist entirely of digits. * It now uses strtoul() for the numeric parsing. Finally, I've included an update to the test harness to exercise the new numeric cases for -R. Approved by: re (kib)
* This fixes bsdcpio's -R option to accept numerickientzle2009-07-032-20/+50
| | | | | | | | | | | | | | | 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)
* When compiled for the release crunches, be a bitkientzle2009-04-192-9/+37
| | | | | | | | | 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.
* Make -lcrypto usage dependent on whether or not we're building with OpenSSL.kientzle2009-04-181-1/+4
|
* Merge from libarchive.googlecode.com:kientzle2009-04-1728-153/+788
| | | | | | | | * 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
* Custom command line parser for cpio; this is a little morekientzle2008-12-065-119/+198
| | | | | code but should be a lot fewer cross-platform compatibility headaches.
* Make the GCC-specific __dead2 markers conditional on whetherkientzle2008-12-062-1/+9
| | | | we're compiling under GCC.
* Format the output of -itv for real. In particular:kientzle2008-11-293-13/+225
| | | | | | | | | | | | | | | * 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.
* Don't destroy the archive until after you finish pulling usefulkientzle2008-09-041-1/+1
| | | | information out of it. As reported by Giorgos Keramidas.
* MfP4: Verify correct interaction with umask: Add anotherkientzle2008-08-251-6/+27
| | | | | | | file with different permissions and set a non-zero umask during the actual copy tests. The extra entry increases the size of the test archives of course, so adjust the expected sizes.
* Update the total archive byte counters when writing entries to disk usingkientzle2008-08-247-13/+19
| | | | | | archive_write_disk. Update cpio to use this to emit block counts in -p mode. Update cpio tests to verify these block counts.
* straighten out the "clean" targetkientzle2008-08-241-6/+2
|
* cpio -v emits a line for every item copied.kientzle2008-08-241-1/+1
|
OpenPOWER on IntegriCloud