From 3b56813eb0c9c664c2077588231495b8edad8367 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Tue, 18 Mar 2008 06:18:49 +0000 Subject: [PATCH] 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 --- usr.bin/tar/Makefile | 2 +- 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 36ac2fa4988d..fb13745f1415 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 c3ff802b9a95..d0e60f254ae7 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); } /*