[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] tar 1.15.91 attempting to get to files not within --one-fi
Re: [Bug-tar] tar 1.15.91 attempting to get to files not within --one-file-system
Tue, 20 Jun 2006 14:39:14 +0300
Sergey Poznyakoff <address@hidden> wrote:
> > this is probably related to also using --listed-incremental
> > it appears to be probing stuff on nfs and procps file systems.
> I was not able to reproduce it.
After a bit of trying I succeeded to. It has to do with the recent
changes in name matching. Please, try the attached patch.
RCS file: /cvsroot/tar/tar/src/names.c,v
retrieving revision 1.59
diff -p -u -r1.59 names.c
--- src/names.c 25 May 2006 07:04:53 -0000 1.59
+++ src/names.c 20 Jun 2006 11:33:29 -0000
@@ -488,7 +488,8 @@ namelist_match (char const *file_name, s
for (p = namelist; p; p = p->next)
- && exclude_fnmatch (p->name, file_name, p->matching_flags))
+ && (exact ? strcmp (p->name, file_name) == 0
+ : exclude_fnmatch (p->name, file_name, p->matching_flags)))