Merge "Update the "host" bionic code tzdata lookup logic"
diff --git a/linker/linker_config.cpp b/linker/linker_config.cpp
index ac4c1fd..0e75c85 100644
--- a/linker/linker_config.cpp
+++ b/linker/linker_config.cpp
@@ -241,11 +241,15 @@
if (realpath(value.c_str(), buf)) {
resolved_path = buf;
} else if (errno != ENOENT) {
- DL_WARN("%s:%zd: warning: path \"%s\" couldn't be resolved: %s",
- ld_config_file_path,
- cp.lineno(),
- value.c_str(),
- strerror(errno));
+ // realpath is expected to fail with EPERM in some situations, so log
+ // the failure with INFO rather than DL_WARN. e.g. A binary in
+ // /data/local/tmp may attempt to stat /postinstall. See
+ // http://b/120996057.
+ INFO("%s:%zd: warning: path \"%s\" couldn't be resolved: %s",
+ ld_config_file_path,
+ cp.lineno(),
+ value.c_str(),
+ strerror(errno));
resolved_path = value;
} else {
// ENOENT: no need to test if binary is under the path