[Problem] Bluetooth log is not deleted on user binary.
[Cause & Measure] Directory owner / group is modified manually. It
causes inconsistency with system setting. The base directory which is
passed from dump daemon has setuid bit. So the files and directories
created by bluetooth script have the same group id to the base
directory. So bluetooth script doesn't need to change ownership of
files and directories. This patch removes chown part from script and
adds write permission to group.
[Checking Method] *#9900# on User binary
Change-Id: Ibfde6fd7a37483dcdd3b0c4f8872dbb436095870
# bluetooth
#--------------------------------------
-CHOWN="/bin/chown"
-
BLUETOOTH_DEBUG=${1}/bluetooth
PREV_PWD=${PWD}
BT_DATA_DIR=/var/lib/bluetooth
-mkdir -p ${BLUETOOTH_DEBUG}
-${CHOWN} 551:551 ${BLUETOOTH_DEBUG}
+/bin/mkdir -p ${BLUETOOTH_DEBUG}
+/bin/chmod g+w ${BLUETOOTH_DEBUG}
if [ -e ${BT_DATA_DIR} ]
then