diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-03-18 06:18:49 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-03-18 06:18:49 +0000 |
commit | 5b6560526e3f033b3c4613a1e51d748fa7e747d7 (patch) | |
tree | d6efe514a88fe1d9f94bff31d72b01ed62a00dfe | |
parent | 8070f0fd7150f263a97aa7f69d18a0c81831c135 (diff) | |
download | FreeBSD-src-5b6560526e3f033b3c4613a1e51d748fa7e747d7.zip FreeBSD-src-5b6560526e3f033b3c4613a1e51d748fa7e747d7.tar.gz |
Fix --fast-read by decrementing the remaining patterns to be matched,
instead of incrementing.
Pointy hat: me
Thanks to: Tomasz Przygoda
MFC after: 3 days
-rw-r--r-- | usr.bin/tar/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/tar/matching.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile index 36ac2fa..fb13745 100644 --- a/usr.bin/tar/Makefile +++ b/usr.bin/tar/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= bsdtar -BSDTAR_VERSION_STRING= 2.4.11 +BSDTAR_VERSION_STRING=2.5.0b SRCS= bsdtar.c getdate.y matching.c read.c tree.c util.c write.c WARNS?= 5 DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} diff --git a/usr.bin/tar/matching.c b/usr.bin/tar/matching.c index c3ff802..d0e60f2 100644 --- a/usr.bin/tar/matching.c +++ b/usr.bin/tar/matching.c @@ -157,7 +157,7 @@ excluded(struct bsdtar *bsdtar, const char *pathname) */ if (match->matches == 0) { match->matches++; - matching->inclusions_unmatched_count++; + matching->inclusions_unmatched_count--; return (0); } /* |