Re: [PATCH] Fix directory_iterator handling of DT_UNKNOWN

2019-04-08 Thread Jonathan Wakely
On 08/04/19 09:18 +0200, Christophe Lyon wrote: On Fri, 5 Apr 2019 at 18:57, Jonathan Wakely wrote: We need to handle DT_UNKNOWN earlier, not only during directory recursion, so that the cached file_type value in the directory_entry won't be used. * src/c++17/fs_dir.cc

Re: [PATCH] Fix directory_iterator handling of DT_UNKNOWN

2019-04-08 Thread Christophe Lyon
On Fri, 5 Apr 2019 at 18:57, Jonathan Wakely wrote: > > We need to handle DT_UNKNOWN earlier, not only during directory > recursion, so that the cached file_type value in the directory_entry > won't be used. > > * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle >

[PATCH] Fix directory_iterator handling of DT_UNKNOWN

2019-04-05 Thread Jonathan Wakely
We need to handle DT_UNKNOWN earlier, not only during directory recursion, so that the cached file_type value in the directory_entry won't be used. * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle d_type == DT_UNKNOWN immediately.