From owner-freebsd-stable@FreeBSD.ORG Thu Nov 24 05:23:04 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F693106564A for ; Thu, 24 Nov 2011 05:23:04 +0000 (UTC) (envelope-from janm@transactionware.com) Received: from midgard.transactionware.com (mail2.transactionware.com [203.14.245.36]) by mx1.freebsd.org (Postfix) with SMTP id 9A1788FC14 for ; Thu, 24 Nov 2011 05:23:03 +0000 (UTC) Received: (qmail 86580 invoked by uid 907); 24 Nov 2011 05:23:01 -0000 Received: from jmmacpro.transactionware.com (HELO jmmacpro.transactionware.com) (192.168.1.33) by midgard.transactionware.com (qpsmtpd/0.82) with ESMTP; Thu, 24 Nov 2011 16:23:01 +1100 From: Jan Mikkelsen Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Nov 2011 16:23:01 +1100 Message-Id: To: FreeBSD Stable Mailing List Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Subject: bsdtar 9.0-RC2 --exclude regression X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 05:23:04 -0000 Hi, The --exclude option seems to have broken in 9.0-RC2. I see this behaviour on 9.0-RC2: $ mkdir dir1 dir2 $ touch dir1/a $ touch dir2/dir1 $ bsdtar -c -f - --exclude './dir1/*' . | bsdtar tf - ./ ./dir2/ And on 8.2-RELEASE (as expected): $ mkdir dir1 dir2 $ touch dir1/a $ touch dir2/dir1 $ bsdtar -c -f - --exclude './dir1/*' . | bsdtar tf - ./ ./dir2/ ./dir1/ ./dir2/dir1 There are two issues here: Excluding './dirname/*' excludes the directory 'dirname', not just the = contents of the directory. Excluding './dirname/*' excludes every file called 'dirname', regardless = of where the name is in the hierarchy. I'm assuming this is a bug, and not some intended change in behaviour. Regards, Jan Mikkelsen