diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-05-19 13:11:38 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-05-19 13:12:45 -0700 |
commit | 66f48dd6cddd0b150000ade707096e701dbde9f3 (patch) | |
tree | d92879f42ee8529ed4bba6c70439680d93b683f9 | |
parent | 4124b98e2ff330b87ba8ba878a8affbde898df82 (diff) | |
parent | 96e3c407c473f09a727615c4a83fe0e9c11a6b11 (diff) | |
download | kati-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.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 { |