This change prevents running another (possibly malicious) command with
the same name by modifying the PATH.
Change-Id: I002a0260e2c385dd9da533a7587bf9056fcab549
#!/bin/bash
-VCONFTOOL="vconftool set -f -t"
+VCONFTOOL="/bin/vconftool set -f -t"
$VCONFTOOL int VconfImplTest/int/20 20
$VCONFTOOL string VconfImplTest/string/foo "foo"
VCONF_KEY_PREFIX=$1
if [ -f /etc/tizen-release ]; then
- VCONFTOOL="vconftool set -f -t"
+ VCONFTOOL="/bin/vconftool set -f -t"
else
sdb root on
- VCONFTOOL="sdb shell vconftool set -f -t"
+ VCONFTOOL="sdb shell /bin/vconftool set -f -t"
sdb -d shell mount -o remount,rw /
fi