]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Restore the parts of fts that were removed on 2006-01-17, so that
authorJim Meyering <jim@meyering.net>
Mon, 15 May 2006 10:00:16 +0000 (10:00 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 15 May 2006 10:00:16 +0000 (10:00 +0000)
commit7729ee5e68d2590f7723bdbaa4f0d07d8dc96db0
treec7efecd5d8e3c744bf0f8f87a78db64e8759891e
parent48138763f05fa312089223282f2a162117f2f8d9
Restore the parts of fts that were removed on 2006-01-17, so that
it's easier for legacy applications designed for the version
of fts in glibc or BSD to convert to this more robust version.
Add a new mode, FTS_CWDFD, by which to enable the improved
(openat- based -- aka no-chdir) semantics.

* fts_.h (FTS_CWDFD): Define.  Callers must use this fts_open
option to enable the more robust behavior.
(FTS_OPTIONMASK): Widen accordingly.
* fts.c: Restore removed code, reverting the default behavior.
lib/fts.c
lib/fts_.h