aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2017-05-13 19:42:58 +0900
committerGitHub <noreply@github.com>2017-05-13 19:42:58 +0900
commit96e3c407c473f09a727615c4a83fe0e9c11a6b11 (patch)
treed92879f42ee8529ed4bba6c70439680d93b683f9
parentc76b9f146a7307cff56fc40269c030d473901b2f (diff)
parent09279ada4112e9e8ea3c9d624e50b01e1b26aac0 (diff)
downloadkati-96e3c407c473f09a727615c4a83fe0e9c11a6b11.tar.gz
Merge pull request #116 from danw/find_eacces
Ignore EACCES during find emulator opendir
-rw-r--r--find.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/find.cc b/find.cc
index c6a4155..6712923 100644
--- a/find.cc
+++ b/find.cc
@@ -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 {