From: Seungyoun Ju Date: Tue, 26 Sep 2017 07:52:06 +0000 (+0900) Subject: Fix : Bluetooth log is not removed on user binary X-Git-Tag: accepted/tizen/unified/20180801.080104~4 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git;a=commitdiff_plain;h=3c6c990480a0c55a397f1d645d508908714ce73e Fix : Bluetooth log is not removed on user binary [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 --- diff --git a/bluetooth_log_dump.sh b/bluetooth_log_dump.sh old mode 100644 new mode 100755 index 40d0403..3ed38c6 --- a/bluetooth_log_dump.sh +++ b/bluetooth_log_dump.sh @@ -4,14 +4,12 @@ # 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