bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib broken on systems lacking fchdir


From: Jim Meyering
Subject: Re: gnulib broken on systems lacking fchdir
Date: Fri, 01 Dec 2006 11:16:01 +0100

Eric Blake <address@hidden> wrote:
> To my knowledge, gettext does not depend on fchdir (as evidenced by the fact
> that it builds on mingw).  But coreutils, findutils, tar, and gzip all use
> gnulib directory traversal.

When I think of gnulib directory traversal, I think of its lib/fts.c.
I knew about findutils using fts, but didn't know about the other two.

So I took a look.
I see that gzip doesn't use anything like that.  It just rolls its own
and operates on full relative names.  But that's the way it should be,
since no one cares if gzip can't recursively compress or decompress a
hierarchy that's really deep or that contains very long names.  Here,
simple is better, since gzip has to be so portable.

Tar rolls its own, too, but uses chdir, so doesn't hit the PATH_MAX
limitation.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]