Mail Archives: djgpp-workers/2001/02/13/14:58:25
> From: "Laurynas Biveinis" <lauras AT softhome DOT net>
> Date: Tue, 13 Feb 2001 17:56:08 +0200
>
> > Also, at least for skipping directories, you could use the same data
> > structure used by djtar for mapping file names: there's already a
> > provision there to skip files and directories. It would make the code
> > less complicated.
>
> But hash tables deal with full filenames only; I put a prefix
> 'gcc-3.0/libjava' in it, but 'gcc-3.0/libjava/foo' generates a different
> hash code, and the match isn't detected.
Look at the function djtar.c:change -- if the isdir member of the
struct has the value of 2, all the files under that directory are
skipped.
The problem is it currently calls that function only under certain
conditions. If you change those conditions, or duplicate the code,
all the pieces will fall in place.
- Raw text -