summaryrefslogtreecommitdiffstats
path: root/init/service.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-03-19 11:39:14 -0700
committerYifan Hong <elsk@google.com>2019-03-21 16:00:00 -0700
commitdd6eefca303755264434454fddc0cc627e834577 (patch)
treef5df3c9b9bc70724f04382d57ebd05b9abdf17d6 /init/service.cpp
parent7acb0d39e858c2f4251298e722ffe42ca7924156 (diff)
downloadsystem_core-dd6eefca303755264434454fddc0cc627e834577.tar.gz
system_core-dd6eefca303755264434454fddc0cc627e834577.tar.bz2
system_core-dd6eefca303755264434454fddc0cc627e834577.zip
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
Diffstat (limited to 'init/service.cpp')
0 files changed, 0 insertions, 0 deletions