projects
/
platform
/
core
/
system
/
factory-reset.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6261605
)
Leave comments for umask 0000
72/237372/6
accepted/tizen/6.0/unified/20201030.115514
accepted/tizen/6.0/unified/hotfix/20201103.003243
accepted/tizen/unified/20200630.131155
submit/tizen/20200630.015627
submit/tizen_6.0/20201029.205104
submit/tizen_6.0_hotfix/20201102.192504
submit/tizen_6.0_hotfix/20201103.114804
tizen_6.0.m2_release
author
Kiseok Chang
<kiso.chang@samsung.com>
Mon, 29 Jun 2020 23:56:13 +0000
(08:56 +0900)
committer
Kiseok Chang
<kiso.chang@samsung.com>
Tue, 30 Jun 2020 01:54:36 +0000
(10:54 +0900)
- the reason to add 'umask 0000' before extract opt.zip (or opt.tar.gz)
Change-Id: Ie059460af4522a0aa9eee078e8d75943e2f6f202
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
script/run-factory-reset.sh
patch
|
blob
|
history
diff --git
a/script/run-factory-reset.sh
b/script/run-factory-reset.sh
index 148676cbda17c13c83f76db722ce48981565c2f1..54a714bc9c66a0d4133d932703f77eee3a3a157a 100755
(executable)
--- a/
script/run-factory-reset.sh
+++ b/
script/run-factory-reset.sh
@@
-255,9
+255,11
@@
fi
/sbin/fstrim -v $USRDATADIR >> $logfile
+# For preventing the unexpected file mode creation mask
+umask 0000
+
# Delete finished. Restore starts here.
cd /
-umask 0000
$RSTCMD
echo "$RSTCMD return $?" >> $logfile