]> Savannah Git Hosting - gnulib.git/commit
fts: fix bug in find across filesystems
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Apr 2018 19:50:35 +0000 (12:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Apr 2018 19:51:06 +0000 (12:51 -0700)
commit81b8c0d3be98f5a77403599de3d06329b3e7673e
treeb8111fe72620995d53754fbdf41fdfab65a60462
parent5cebd865abd3b9381903fc87aad2653f6cff1a27
fts: fix bug in find across filesystems

This fixes a bug I introduced last summer.
Problem reported by Kamil Dudka in:
https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
* lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
(leaf_optimization):
New arg for file descriptor.  All callers changed.
(fts_build): Check for whether inodes should be sorted
before closing the directory.
ChangeLog
lib/fts.c