OSDN Git Service

toybox: Do not install a symlink for traceroute6
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 30 Apr 2016 11:36:13 +0000 (13:36 +0200)
committerMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 30 Apr 2016 11:36:13 +0000 (13:36 +0200)
Installing a symlink for traceroute6 can be harmful on debug builds,
because the a race condition in the build process might lead to
external/iputils overwriting the toybox binary.
A similar issue (with the blkid toy) was fixed in 85bdd234fffc
("toybox: Fix race condition during install")

Google's toybox installation code does not install a symlink for
traceroute6 either. Debug builds are getting traceroute6 from
external/iputils instead.

FIXES: 26c5170b565 "Add new toys in Android makefile and generate links
automatically"

Change-Id: I5ef4e437d32740f08c72403aa7710452a044184a

Android.mk

index 8bc0100..adbf0d7 100644 (file)
@@ -277,7 +277,7 @@ TOYS_FOR_XBIN := ls ps
 # skip links for these toys in the system image, they already have
 # a full-blown counterpart. we still want them for the recovery
 # image though.
-TOYS_WITHOUT_LINKS := blkid
+TOYS_WITHOUT_LINKS := blkid traceroute6
 
 include $(BUILD_EXECUTABLE)