On 05/06/2010 02:24 PM, Sergey Poznyakoff wrote: > Jean-Louis Martineau <martin...@zmanda.com> ha escrit: > >> $ tar xf file.tar --wildcards --exclude 't\*s' >> It worked for all tar version up to 1.22 >> With tar-1.23, it extract everything except the file 't\*s. > > There was a bug in the `exclude' module. I have installed the > attached patch.
> + do > + { > + if (inset) > + { > + if (*q == ']') > + inset = 0; > + } > + else if (*q == '[') > + inset = 1; > + else if (*q == '\\') > + q++; > + } > + while ((*str++ = *q++)); This doesn't handle: []\a] as the set that recognizes '\\', 'a', or ']'. Should it? -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature