freebsd-skq/bin/pax
David E. O'Brien f08c1d5e48 There is a bug in /bin/pax -s option processing. The code assumes that all
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
1998-12-05 10:29:10 +00:00
..
ar_io.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
ar_subs.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
buf_subs.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
cache.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
cache.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
cpio.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
cpio.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
extern.h Dont have an internal function named "warn" it clashes with libc.. 1997-08-29 16:12:30 +00:00
file_subs.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
ftree.c Make sure we pass the length - 1 to readlink, since it adds its own 1998-06-09 03:38:43 +00:00
ftree.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
gen_subs.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
Makefile Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
options.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
options.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
pat_rep.c There is a bug in /bin/pax -s option processing. The code assumes that all 1998-12-05 10:29:10 +00:00
pat_rep.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
pax.1 Clarify the example a bit. 1998-05-31 22:43:57 +00:00
pax.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
pax.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
sel_subs.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
sel_subs.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
tables.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00
tables.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
tar.c - Fix off-by-one problem in tar where filenames of length 100 1998-10-20 05:52:33 +00:00
tar.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
tty_subs.c Correct use of .Nm. Add rcsid. 1998-05-15 06:30:58 +00:00