Use absolute path in shell script 60/255060/1
authorArtur Świgoń <a.swigon@samsung.com>
Thu, 11 Mar 2021 14:12:17 +0000 (15:12 +0100)
committerArtur Świgoń <a.swigon@samsung.com>
Thu, 11 Mar 2021 14:12:17 +0000 (15:12 +0100)
This change prevents running another (possibly malicious) command with
the same name by modifying the PATH.

Change-Id: I002a0260e2c385dd9da533a7587bf9056fcab549

tests/VConf_init.sh

index f27929c..dfa6d97 100755 (executable)
@@ -1,6 +1,6 @@
 #!/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"