Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Nov 2011 16:23:01 +1100
From:      Jan Mikkelsen <janm@transactionware.com>
To:        FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   bsdtar 9.0-RC2 --exclude regression
Message-ID:  <C0E9A7B6-D8D1-43DF-B011-CA27B169E0C8@transactionware.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C0E9A7B6-D8D1-43DF-B011-CA27B169E0C8>