aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {