Return path including executable instead of without
Al Sutton authored
The previous implementation returned the path the executable was in instead
of returning the path including the executable (i.e. it returned ...bin
instead of ...bin/executable). This is not what the original methods did
and caused the process forking of adb to fail.

This patch corrects the implementation.

(cherry picked from commit 26b53bb7)

Change-Id: Icad6870bbb0a88f611ca71d90fff30f7b576c367
d5b41767
Name Last commit Last update
adb Return path including executable instead of without
adf libadf: silence false positive warning
cpio cpio: Turn on -Werror
debuggerd Fix debuggerd issues.
fastboot Return path including executable instead of without
fastbootd Judge mmap failed by MAP_FAILED instead of NULL
fs_mgr Provide a way to select force encryption from vendor partition
gpttool gpttool: turn on -Werror
healthd healthd: Add callback for screen_on to the healthdHAL
include audio: add usage "virtual source" to audio attributes.
init init: Fix memory corruption when sanitizing platform paths
libbacktrace Convert futex to cond wait.
libcutils Fix native_handle_create to check if malloc fails
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror"
libion libion: Turn on -Werror
liblog am fe963bfd: am a1ac84cd: MingW doesn\'t handle __attribute__((weak)) for Windows PE
libmemtrack system/core 64-bit cleanup.
libmincrypt Remove declaration of unused static variable
libnativebridge Fix mac build
libnetutils Support resetting connections tied to any nonexistent address.
libpixelflinger Build pixelflinger tests as native tests, not executables.
libprocessgroup Fix issue #18000467: processgroup truncates buffer
libsparse am d4d09637: am db32e788: am a2b03c4a: Merge "libsparse: turn on -Werror"
libsuspend am 1291df76: am c5fa4b19: am 065c2706: Merge "libsuspend: Turn on -Werror"
libsync Add gtest conformance tests for libsync. Not complete yet, but substantially more comprehensive than the interactive test that was there before.
libsysutils
libusbhost
libutils
libziparchive
libzipfile
lmkd
logcat
logd
logwrapper
mkbootimg
netcfg
reboot
rootdir
run-as
sdcard
toolbox
.gitignore
Android.mk
CleanSpec.mk
MODULE_LICENSE_APACHE2
NOTICE
README
ThirdPartyProject.prop