summaryrefslogtreecommitdiffstats
path: root/bin/pax/pat_rep.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate unneeded includes.delphij2015-05-211-2/+0
| | | | MFC after: 2 weeks
* Fix a bunch of typos and a couple of whitespace nits.uqs2011-05-221-1/+1
| | | | Helped by: codespell and vim's spellchecker
* 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
* Remove unnecessary free argument casts.brian2007-05-251-8/+8
| | | | Don't abuse arcname's constness.
* Cleanup pax(1) sources a little bit while I poked around in them:rse2007-05-241-6/+6
| | | | | - remove a superfluous doubled trailing semicolon. - remove the extra void casts on calls to void-function free(3).
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Fix a bazillion warnings. This makes almost the whole of src/bin/*markm2003-05-031-2/+2
| | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-3/+3
| | | | especially in troff files.
* s/filesystem/file system/ as discussed on -developerstrhodes2002-08-211-1/+1
|
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Consistancy check s/file system/filesystem/trhodes2002-05-161-1/+1
| | | | Reviewed by: brian
* Ooops, forgot to remove the registers here.imp2002-02-021-50/+50
|
* o __P has been reovedimp2002-02-021-108/+7
| | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
* Sync up with OpenBSD. Too many changes to note, but the major featureskris2001-05-081-6/+42
| | | | | | | | | | | | | | are: * Implement cpio compatibility mode when pax is invoked as cpio * Extend tar compatibility mode to cover many of the GNU tar single-letter options (bzip2 mode, aka -y/-j is not present in OpenBSD). When invoked as tar, pax is now full-featured enough for use by the ports collection to extract distfiles and create packages. * Many bug fixes to the operation of pax and the tar compatibility modes * Code fixes for things like correct string buffer termination. I tried to preserve existing FreeBSD fixes to this utility; please let me know if I have inadvertently spammed something.
* Reduce diffs with OpenBSD:kris2001-04-261-27/+27
| | | | | | | | | | | | | | | | #if __STDC__ -> #ifdef __STDC__ pax_warn() -> paxwarn() sys_warn() -> syswarn() (foo *)NULL -> NULL bcopy -> memmove()/memcpy() bzero -> memset() Typo fixes sprintf() -> snprintf() rindex() -> strrchr() index() -> strchr() sys_errlist[] -> strerror() Obtained from: OpenBSD
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Rev 1.13 fixes PR bin/8958obrien1998-12-061-1/+1
|
* There is a bug in /bin/pax -s option processing. The code assumes that allobrien1998-12-051-2/+2
| | | | | | | | | | | | | pattern matches will occur at offset zero of the source string. The bug causes the input source string pointer to be incremented by the offset of the end of the match, instead of it's length. The fix is to only increment the pointer by the length of the pattern match (eo-so). Of course, the one example in the man page shows a situation where the match occurs at offset 0. Submitted by: John W. DeBoskey <jwd@unx.sas.com> Obtained from: freebsd-current@freebsd.org
* Correct use of .Nm. Add rcsid.charnier1998-05-151-3/+5
|
* Remove simultaneous include of <sys/param.h> and <sys/types.h>.eivind1997-12-101-3/+1
| | | | | Reorder includes to be alphabetical some places since I already was in here.
* Dont have an internal function named "warn" it clashes with libc..sos1997-08-291-15/+15
| | | | Needed for ELF.
* Off by 1 adjustment. Properly NUL terminate after strncpy.charnier1997-06-021-1/+3
| | | | Obtained from: {Net|Open}BSD
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* -Wall cleaning.steve1996-12-141-2/+2
|
* Remove unneded ctype.h everywhereache1995-10-231-2/+1
| | | | Add setlocale LC_TIME
* Remove trailing whitespace.rgrimes1995-05-301-14/+14
| | | | Reviewed by: phk
* You will find enclosed some changes to make gcc -Wall more happy injoerg1995-03-191-2/+2
| | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier)
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+1196
OpenPOWER on IntegriCloud