From owner-cvs-all Sat Dec 5 02:28:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA27010 for cvs-all-outgoing; Sat, 5 Dec 1998 02:28:31 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA27005; Sat, 5 Dec 1998 02:28:30 -0800 (PST) (envelope-from obrien@FreeBSD.org) From: "David E. O'Brien" Received: (from obrien@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA06680; Sat, 5 Dec 1998 02:29:11 -0800 (PST) Date: Sat, 5 Dec 1998 02:29:11 -0800 (PST) Message-Id: <199812051029.CAA06680@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/bin/pax pat_rep.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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 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