commit | fafc2f1a93df6b103d2731dc4acf297fb6b77211 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Mar 19 11:39:14 2019 -0700 |
committer | Yifan Hong <elsk@google.com> | Thu Mar 21 16:00:00 2019 -0700 |
tree | f5df3c9b9bc70724f04382d57ebd05b9abdf17d6 | |
parent | 7d4f61a256c146b73eac6ac88e69e3ccc95ae332 [diff] |
libcutils: android_get_control_file uses realpath. If the path to android_get_control_file is a symlink, the final sanity check will fail that the fd does not have the same path as the given file. We can't expect callers to readlink() because this would change the environment key. Instead, try to call realpath on both paths. Bug: 126233777 Test: lpdump Change-Id: I0df10d7dbe3e572b8335faad812e5cd80bff1733