summaryrefslogtreecommitdiffstats
path: root/bin/pax
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly add unmarked bin/ binaries to the runtime package.gjb2016-02-091-0/+1
| | | | | | | | Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation
* First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
| | | | Sponsored by: The FreeBSD Foundation
* pax: prevent possible buffer overflowpfg2015-12-291-1/+1
| | | | | | | | Or at least quiet down some static analyzers about it. CID: 978835 MFC after: 1 week Obtained from: OpenBSD
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-2/+0
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | 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-2716-33/+33
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2014-05-081-1/+1
| |\
| * \ Merge headsjg2014-04-285-1/+125
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| | | |
| | \ \
| *-. \ \ Sync from headsjg2012-11-044-3/+3
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ / / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Eliminate unneeded includes.delphij2015-05-2112-17/+1
| | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | | Implement pax -O option to permit limiting a PAX archive to a single volume.eadler2015-03-185-16/+32
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -O Force the archive to be one volume. If a volume ends prematurely, pax will not prompt for a new volume. PR: 198481 Submitted by: Sevan Janiyan Reviewed by: allanjude (doc)
* | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|/ |/| | | | | | | | from the latter.
* | | Make bsd.test.mk the only public mk fragment for the building of tests.jmmv2014-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change {atf,plain,tap}.test.mk to be internal implementation details of bsd.test.mk. Makefiles that build tests should now only include bsd.test.mk and declaratively specify what they want to build, without worrying about the internal implementation of the mk files. The reason for this change is to permit building test programs of different interfaces from a single directory, which is something I had a need for while porting tests over from src/tools/regression/. Additionally, this change makes it possible to perform some other requested changes to bsd.test.mk in an easier manner. Coming soon.
* | | Stop the options string leak if it is not attached into the optionskevlo2014-01-261-0/+2
| | | | | | | | | | | | | | | | | | linked list. Obtained from: OpenBSD
* | | Use TAP_TESTS_PERL to register the legacy_test in bin/pax.jmmv2014-01-143-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redo r260586 by using the new functionality in tap.test.mk to transparently support perl-based test programs. As a side-effect, we get rid of an explicit path to /usr/bin/perl by replacing it with /usr/local/bin/perl (or as defined in tap.test.mk). This also fixes the name of the legacy_test source file because this should have always been legacy_test.pl and not legacy_test.sh. My mistake when originally moving the code around without realizing that this was a perl script. MFC after: 5 days
* | | Mark the bin/pax tests as requiring perl.jmmv2014-01-132-0/+8
| | | | | | | | | | | | | | | | | | | | | The effect of this is that the test program is marked as skipped when perl is missing, instead of marking it as broken due to an execution failure. MFC after: 3 days
* | | Document the lack of chflags support in pax(1)crees2013-12-211-1/+19
| | | | | | | | | | | | | | | | | | PR: docs/135516 Submitted by: arundel (based on) Approved by: gjb (mentor)
* | | Migrate tools/regression/bin/ tests to the new layout.jmmv2013-12-113-0/+106
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is a proof of concept on how to easily integrate existing tests from the tools/regression/ hierarchy into the /usr/tests/ test suite and on how to adapt them to the new layout for src. To achieve these goals, this change: - Moves tests from tools/regression/bin/<tool>/ to bin/<tool>/tests/. - Renames the previous regress.sh files to legacy_test.sh. - Adds Makefiles to build and install the tests and all their supporting data files into /usr/tests/bin/. - Plugs the legacy_test test programs into the test suite using the new TAP backend for Kyua (appearing in 0.8) so that the code of the test programs does not have to change. - Registers the new directories in the BSD.test.dist mtree file. Reviewed by: freebsd-testing Approved by: rpaulo (mentor)
* | Fix warnings found by -Wmising-variable-declarations.ed2012-10-194-3/+3
|/ | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible.
* Fix a bunch of typos and a couple of whitespace nits.uqs2011-05-2212-47/+47
| | | | Helped by: codespell and vim's spellchecker
* Touch the man page date after updating the ustar limitations.brian2010-08-291-1/+1
| | | | MFC after: 3 weeks
* Correct an out-by-one error when earlying out ustar filenames thatbrian2010-08-292-2/+4
| | | | | | | | | | | | | are too long. Filenames escaping this test are caught later on, so the bug doesn't cause any breakage. Document the correct ustar limitations in pax. As I have no access to the IEEE 1003.2 spec, I can only assume that the limitations imposed are in fact correct. Add regression tests for the filename limitations imposed by pax. MFC after: 3 weeks
* Fix an off-by-one error where we try to split a path name that'sbrian2010-08-271-1/+1
| | | | | | | more than 100 characters long and the 101th last character is a '/'. MFC after: 3 weeks
* Fix back references in substitute command for pax(1)uqs2010-05-241-4/+4
| | | | | | | | | | pax(1) was trying to copy the back-referenced data from the match pattern, not the matched data. PR: bin/118132 Obtained from: Debian bug #451361 Reviewed by: jilles MFC after: 3 weeks
* Merge OpenBSD revisions 1.4 through 1.9, mostly style cleanups.delphij2010-03-301-8/+9
| | | | | Obtained from: OpenBSD MFC after: 3 month
* Remove unused files.delphij2010-03-303-617/+0
|
* Tell the compiler these structures are aligned to a byte boundary.imp2010-02-073-7/+5
| | | | | | | | | | All the elements of these structs are char anyway, so it won't hurt performance. Bump warns back up to the default. # we likely should have CTASSERTS to make sure they are the right size. # but with libarchive based tar maybe we shouldn't bother.
* Arm doesn't seem to need such kit gloves. Bump the warnings to 3 hereimp2010-02-041-2/+0
| | | | as well.
* Port everything in bin/ from utmp to utmpx.ed2010-01-131-8/+2
| | | | | date: use libc utmpx routines instead of the ones provided by libulog. pax: don't depend on <utmp.h>
* Add missing `void' for function without arguments.ed2009-12-291-1/+1
|
* Plug a memory leak.delphij2009-12-211-0/+1
| | | | | | PR: bin/141835 Submitted by: Henning Petersen <henning.petersen t-online.de> MFC after: 2 weeks
* Before this fix, pax would stop the restore sequence forkientzle2009-02-011-36/+4
| | | | | | | | | | | | | symlinks after setting the owner. As a result, mode and timestamp were not restored. This patch corrects the problem by simply removing the short-circuit for symlinks and using lchown()/lchmod()/lutimes() always for restoring metadata. PR: bin/91316 Submitted by: Jaakko Heinonen Reviewed by: Joerg Sonnenberger MFC after: 14 days
* Remove unnecessary free argument casts.brian2007-05-254-32/+29
| | | | Don't abuse arcname's constness.
* Cleanup pax(1) sources a little bit while I poked around in them:rse2007-05-245-25/+25
| | | | | - remove a superfluous doubled trailing semicolon. - remove the extra void casts on calls to void-function free(3).
* Fix some of the alignment warnings on ARM.ru2006-11-272-17/+17
|
* Markup fixes.ru2006-09-171-1/+2
|
* Fix the wording about the blocksize (-b) parameter. The existingcokane2006-05-101-2/+3
| | | | | | | | | wording makes it look like pax archives > 32256 bytes are not POSIX-compliant! Correct this to state that pax archives with block sizes > 32256 are not POSIX compliant...and settle our fears. PR: docs/97059 Reviewed by: Giorgos Keramidas <keramida>
* Fix bin/pax doesn't wait for compress/gzip before exiting.obrien2005-03-121-4/+6
| | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> Obtained from: OpenBSD (commited fix to PR 3455)
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Fixed the misplaced $FreeBSD$.ru2005-02-092-2/+2
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-163-51/+51
| | | | Sort standard sections in the (documented) preferred order.
* Don't decend into directories when -d is set and the directory itself doesn'tbrian2005-01-123-2/+19
| | | | | | | | match. PR: 28095 Submitted by: bill at twwells dot com MFC after: 7 days
* /*- or .\"- or #- to begin license clauses.imp2005-01-104-3/+4
|
* Fix off-by-one errors and potential buffer overrunsyar2004-11-131-18/+30
| | | | | | | | | | WRT handling file and link names that reach the allowed maximum for old tar and ustar archive formats. PR: bin/40466 Submitted by: Cyrille Lefevre <email in the PR> (portions) Reviewed by: freebsd-arch (silence) MFC after: 1 month
OpenPOWER on IntegriCloud