diff options
Diffstat (limited to 'find.cc')
| -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 { |
