diff options
author | Kiseok Chang <kiso.chang@samsung.com> | 2020-06-30 08:56:13 +0900 |
---|---|---|
committer | Kiseok Chang <kiso.chang@samsung.com> | 2020-06-30 10:54:36 +0900 |
commit | bfcca7df2bf69c95bd300351e304da72aa888622 (patch) | |
tree | 67e6dc0c865e727f3020563329330ee16722e4bb | |
parent | 6261605cde346a8b703edc89faab4eba42e2aace (diff) | |
download | factory-reset-bfcca7df2bf69c95bd300351e304da72aa888622.tar.gz factory-reset-bfcca7df2bf69c95bd300351e304da72aa888622.tar.bz2 factory-reset-bfcca7df2bf69c95bd300351e304da72aa888622.zip |
Leave comments for umask 0000tizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114804submit/tizen_6.0_hotfix/20201102.192504submit/tizen_6.0/20201029.205104submit/tizen/20200630.015627accepted/tizen/unified/20200630.131155accepted/tizen/6.0/unified/hotfix/20201103.003243accepted/tizen/6.0/unified/20201030.115514
- 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>
-rwxr-xr-x | script/run-factory-reset.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/run-factory-reset.sh b/script/run-factory-reset.sh index 148676c..54a714b 100755 --- 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 |