Mail Archives: djgpp-workers/2001/02/17/07:28:24
> From: lauras AT softhome DOT net
> Date: Sat, 17 Feb 2001 09:15:28 GMT
>
> > Shouldn't you simply use xmalloc?
>
> xmalloc() is some other function in djtar. From zlib, IIRC.
No, it's from gzip, and djtar already uses it even outside the sources
which came from gzip. I don't see why couldn't you use it, maybe I'm
missng something.
> > That is, you want to skip that file or directory. Given this line,
> > the above code would skip all files whose names begin with
> > "/foo/bar/baz", including, for example, "/foo/bar/bazilicum.c" and
> > "/foo/bar/bazillion/xyzzy".
>
> Errm... And this is wrong?
Yes, I think so.
> But this is the behaviour `-o' documentation suggests.
The behavior of -o is intentionally different: it was meant to be used
as a replacement for a wildcard. But omitting a single file or
directory is such a frequent need that it is IMHO unwise to ask the
user to type the traling slash explicitly. I think the default
behavior in the code you sent will surprise people.
- Raw text -