aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-05-19 13:11:38 -0700
committerDan Willemsen <dwillemsen@google.com>2017-05-19 13:12:45 -0700
commit66f48dd6cddd0b150000ade707096e701dbde9f3 (patch)
treed92879f42ee8529ed4bba6c70439680d93b683f9
parent4124b98e2ff330b87ba8ba878a8affbde898df82 (diff)
parent96e3c407c473f09a727615c4a83fe0e9c11a6b11 (diff)
downloadkati-66f48dd6cddd0b150000ade707096e701dbde9f3.tar.gz
Merge remote-tracking branch 'aosp/upstream' into master
* aosp/upstream: Ignore EACCES during find emulator opendir Bug: 37553659 Test: mkdir -p out2/a; sudo chown nobody:nobody out2/a; m -j Change-Id: Ibc038a8658242e123815ef9de39891e0ee622b57
-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 {