mcreboot: Change umask for /proc and /sys files
This commit is contained in:
@@ -35,6 +35,7 @@ error_exit() {
|
||||
;&
|
||||
tmp_mcos_created)
|
||||
if [ "$enable_mcoverlay" == "yes" ]; then
|
||||
umask $umask_old
|
||||
rm -rf /tmp/mcos
|
||||
fi
|
||||
;&
|
||||
@@ -45,9 +46,12 @@ error_exit() {
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
# Change umask for /proc and /sys files
|
||||
umask_dec=$(( 8#${umask_old} & 8#0002 ))
|
||||
umask 0`printf "%o" ${umask_dec}`
|
||||
|
||||
if [ ! -e /tmp/mcos ]; then
|
||||
mkdir -p /tmp/mcos;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user