aboutsummaryrefslogtreecommitdiff
path: root/bin/pax
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-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. Notes: svn path=/head/; revision=241720
* Fix a bunch of typos and a couple of whitespace nits.Ulrich Spörlein2011-05-2212-47/+47
| | | | | | | Helped by: codespell and vim's spellchecker Notes: svn path=/head/; revision=222177
* Touch the man page date after updating the ustar limitations.Brian Somers2010-08-291-1/+1
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=211965
* Correct an out-by-one error when earlying out ustar filenames thatBrian Somers2010-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 Notes: svn path=/head/; revision=211963
* Fix an off-by-one error where we try to split a path name that'sBrian Somers2010-08-271-1/+1
| | | | | | | | | | more than 100 characters long and the 101th last character is a '/'. MFC after: 3 weeks Notes: svn path=/head/; revision=211864
* Fix back references in substitute command for pax(1)Ulrich Spörlein2010-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 Notes: svn path=/head/; revision=208484
* Merge OpenBSD revisions 1.4 through 1.9, mostly style cleanups.Xin LI2010-03-301-8/+9
| | | | | | | | Obtained from: OpenBSD MFC after: 3 month Notes: svn path=/head/; revision=205942
* Remove unused files.Xin LI2010-03-303-617/+0
| | | | Notes: svn path=/head/; revision=205940
* Tell the compiler these structures are aligned to a byte boundary.Warner Losh2010-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. Notes: svn path=/head/; revision=203613
* Arm doesn't seem to need such kit gloves. Bump the warnings to 3 hereWarner Losh2010-02-041-2/+0
| | | | | | | as well. Notes: svn path=/head/; revision=203480
* Port everything in bin/ from utmp to utmpx.Ed Schouten2010-01-131-8/+2
| | | | | | | | date: use libc utmpx routines instead of the ones provided by libulog. pax: don't depend on <utmp.h> Notes: svn path=/head/; revision=202193
* Add missing `void' for function without arguments.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201179
* Plug a memory leak.Xin LI2009-12-211-0/+1
| | | | | | | | | PR: bin/141835 Submitted by: Henning Petersen <henning.petersen t-online.de> MFC after: 2 weeks Notes: svn path=/head/; revision=200794
* Before this fix, pax would stop the restore sequence forTim Kientzle2009-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 Notes: svn path=/head/; revision=187976
* Remove unnecessary free argument casts.Brian Somers2007-05-254-32/+29
| | | | | | | Don't abuse arcname's constness. Notes: svn path=/head/; revision=169993
* Cleanup pax(1) sources a little bit while I poked around in them:Ralf S. Engelschall2007-05-245-25/+25
| | | | | | | | - remove a superfluous doubled trailing semicolon. - remove the extra void casts on calls to void-function free(3). Notes: svn path=/head/; revision=169926
* Fix some of the alignment warnings on ARM.Ruslan Ermilov2006-11-272-17/+17
| | | | Notes: svn path=/head/; revision=164699
* Markup fixes.Ruslan Ermilov2006-09-171-1/+2
| | | | Notes: svn path=/head/; revision=162379
* Fix the wording about the blocksize (-b) parameter. The existingColeman Kane2006-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> Notes: svn path=/head/; revision=158414
* Fix bin/pax doesn't wait for compress/gzip before exiting.David E. O'Brien2005-03-121-4/+6
| | | | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> Obtained from: OpenBSD (commited fix to PR 3455) Notes: svn path=/head/; revision=143447
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Fixed the misplaced $FreeBSD$.Ruslan Ermilov2005-02-092-2/+2
| | | | Notes: svn path=/head/; revision=141580
* Add the new standard EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-163-51/+51
| | | | | | | Sort standard sections in the (documented) preferred order. Notes: svn path=/head/; revision=140353
* Don't decend into directories when -d is set and the directory itself doesn'tBrian Somers2005-01-123-2/+19
| | | | | | | | | | | match. PR: 28095 Submitted by: bill at twwells dot com MFC after: 7 days Notes: svn path=/head/; revision=140097
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-104-3/+4
| | | | Notes: svn path=/head/; revision=139969
* Fix off-by-one errors and potential buffer overrunsYaroslav Tykhiy2004-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 Notes: svn path=/head/; revision=137645
* Document missing multibyte character handling in utilities specifiedTim J. Robbins2004-07-031-1/+5
| | | | | | | by POSIX. Notes: svn path=/head/; revision=131513
* Deal with double whitespace.Ruslan Ermilov2004-07-031-2/+2
| | | | Notes: svn path=/head/; revision=131505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131484
* Don't continue if the '-C' option (a-la GNUtar; commited in options.cDavid E. O'Brien2004-06-251-1/+3
| | | | | | | | | | | rev 1.18, but not documented in the man page) caused a failed chdir. Otherwise, one can easily overwrite files. Submitted by: Robert Nagy <robert@openbsd.org> Obtained from: OpenBSD Notes: svn path=/head/; revision=131085
* Use WARNS?=3 for these in the arm case for now, due to toolchain issues.Olivier Houchard2004-05-141-0/+4
| | | | Notes: svn path=/head/; revision=129215
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-0626-104/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Fix memory leakColin Percival2004-03-161-2/+2
| | | | | | | | | | PR: bin/64321 Submitted by: Rodney Ruddock <rodney@interopsystems.com> MFOpenBSD: rev 1.17 MFC after: 3 days Notes: svn path=/head/; revision=127055
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)Mark Murray2004-03-051-1/+1
| | | | | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64 Notes: svn path=/head/; revision=126643
* Get this area compiling with the highest WARNS= that it works with.Mark Murray2003-06-131-1/+0
| | | | | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386 Notes: svn path=/head/; revision=116282
* Fix a bazillion warnings. This makes almost the whole of src/bin/*Mark Murray2003-05-0311-75/+88
| | | | | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha Notes: svn path=/head/; revision=114583
* Quiet warnings about copyright[].David E. O'Brien2003-05-021-2/+2
| | | | Notes: svn path=/head/; revision=114470
* Fix signed/unsigned mix comparisons involving sizeof.David E. O'Brien2003-05-023-11/+13
| | | | Notes: svn path=/head/; revision=114469
* Add the -j and -y options to the synopsis.Tim J. Robbins2003-05-011-1/+1
| | | | Notes: svn path=/head/; revision=114369
* Make the "tarcp" example more direct.David E. O'Brien2003-01-101-5/+5
| | | | Notes: svn path=/head/; revision=109075
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-0110-21/+21
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Ensure all va_starts have a matching va_end.Tim J. Robbins2002-10-061-1/+1
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=104560
* /dev/sa0 is the default tape device, not /dev/rst0.Tim J. Robbins2002-10-062-6/+6
| | | | Notes: svn path=/head/; revision=104556
* Fix format string errors relating mainly to the use of %qu to print off_t's.Tim J. Robbins2002-10-064-9/+15
| | | | | | | | | | | | Instead use %ju and cast the argument. WFORMAT=0 is still required in the Makefile because gcc warns about some strftime() calls (I don't think this behaviour is useful.) Tested on: sparc64, alpha, i386 Notes: svn path=/head/; revision=104548
* Removed extra $FreeBSD$. Moved #if 0 for the vendor id to the correctBruce Evans2002-08-221-5/+3
| | | | | | | place. Restored indent protection of copyright comment. Notes: svn path=/head/; revision=102245
* s/filesystem/file system/ as discussed on -developersTom Rhodes2002-08-2113-37/+37
| | | | Notes: svn path=/head/; revision=102230
* Fix a couple of typos in a comment.Giorgos Keramidas2002-07-152-3/+3
| | | | | | | | PR: docs/33559 Submitted by: Marc Olzheim <marcolz@ilse.nl> Notes: svn path=/head/; revision=100012
* Consistently use FBSDIDDavid E. O'Brien2002-06-3016-31/+32
| | | | Notes: svn path=/head/; revision=99110
* more file system > filesystemTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96706
* Consistancy check s/file system/filesystem/Tom Rhodes2002-05-1612-33/+33
| | | | | | | Reviewed by: brian Notes: svn path=/head/; revision=96702