commit | b3e55b246d16e2a9f0ea67a814c1e3566a8e36ab | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Mon Jul 23 22:58:46 2018 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Mon Jul 23 22:58:46 2018 +0000 |
tree | 3f999786fb864a7794a41933d2b375d710689e5f | |
parent | 2c1163593fc761e13e886b270809964aec21f035 [diff] |
Handle DT_UNKNOWN correctly during directory iteration. Unlike stat and lstat, where unknown really means we know it's something weird, during directory iteration DT_UNKNOWN simply means that the underlying FS doesn't support the dirent::dt_type field. This patch fixes libc++ to correctly set the cache to empty when DT_UNKNOWN is reported. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337768 91177308-0d34-0410-b5e6-96231b3b80d8