projects
/
profile
/
common
/
apps
/
native
/
accessibility-setting.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d009a
)
Use absolute path in shell script
61/255061/1
author
Artur Świgoń
<a.swigon@samsung.com>
Thu, 11 Mar 2021 14:12:17 +0000
(15:12 +0100)
committer
Artur Ś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
patch
|
blob
|
history
diff --git
a/tests/VConf_init.sh
b/tests/VConf_init.sh
index f27929c94a39535c3ec2251ab117d1fad59e7077..dfa6d970b8c8c34cc5fb651e512b64121816c87c 100755
(executable)
--- a/
tests/VConf_init.sh
+++ b/
tests/VConf_init.sh
@@
-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"