diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2017-05-13 19:42:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-13 19:42:58 +0900 |
commit | 96e3c407c473f09a727615c4a83fe0e9c11a6b11 (patch) | |
tree | d92879f42ee8529ed4bba6c70439680d93b683f9 | |
parent | c76b9f146a7307cff56fc40269c030d473901b2f (diff) | |
parent | 09279ada4112e9e8ea3c9d624e50b01e1b26aac0 (diff) | |
download | kati-96e3c407c473f09a727615c4a83fe0e9c11a6b11.tar.gz |
Merge pull request #116 from danw/find_eacces
Ignore EACCES during find emulator opendir
-rw-r--r-- | find.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -918,7 +918,7 @@ class FindEmulatorImpl : public FindEmulator { DirentNode* ConstructDirectoryTree(const string& path) { DIR* dir = opendir(path.empty() ? "." : path.c_str()); if (!dir) { - if (errno == ENOENT) { + if (errno == ENOENT || errno == EACCES) { LOG("opendir failed: %s", path.c_str()); return NULL; } else { |