projects
/
platform
/
upstream
/
device-mapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d985ba2
)
blkdeactivate.sh: Add PATH environment variable into script
49/308949/2
accepted/tizen_unified
accepted/tizen_unified_x
tizen
accepted/tizen/unified/20240404.164503
accepted/tizen/unified/x/20240408.053735
author
Unsung Lee
<unsung.lee@samsung.com>
Wed, 3 Apr 2024 05:55:46 +0000
(14:55 +0900)
committer
Unsung Lee
<unsung.lee@samsung.com>
Wed, 3 Apr 2024 06:03:35 +0000
(15:03 +0900)
Add PATH environment variable into script to pass the security
path checker.
The corresponding error is reported like below:
Shellscript check failed.
Scripts without PATH variable:
/usr/sbin/blkdeactivate,device-mapper-1.02.196-1.armv7l
Change-Id: I6887440530d84bf01f35d93255e590fe7e62a03f
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
scripts/blkdeactivate.sh.in
patch
|
blob
|
history
diff --git
a/scripts/blkdeactivate.sh.in
b/scripts/blkdeactivate.sh.in
index
7c517b8
..
17c059a
100644
(file)
--- a/
scripts/blkdeactivate.sh.in
+++ b/
scripts/blkdeactivate.sh.in
@@
-29,6
+29,8
@@
#set -x
shopt -s dotglob nullglob
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
TOOL=blkdeactivate
DEV_DIR="/dev"