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

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to