Date: Sat, 5 Dec 1998 02:29:11 -0800 (PST) From: "David E. O'Brien" <obrien@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/bin/pax pat_rep.c Message-ID: <199812051029.CAA06680@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
obrien 1998/12/05 02:29:10 PST Modified files: bin/pax pat_rep.c Log: 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 Revision Changes Path 1.13 +2 -2 src/bin/pax/pat_rep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812051029.CAA06680>