Use absolute path in shell script 61/255061/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:15:19 +0000 (15:15 +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 f27929c94a39535c3ec2251ab117d1fad59e7077..dfa6d970b8c8c34cc5fb651e512b64121816c87c 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"