Commit 32048fac authored by Jesse Norell's avatar Jesse Norell
Browse files

updater: reset umask after creating tmpdir

parent c40198b1
......@@ -40,10 +40,12 @@ cd /tmp
if [ -n "${_UPD}" ]
then
{
save_umask=`umask`
umask 0077 \
&& tmpdir=`mktemp -dt "$(basename $0).XXXXXXXXXX"` \
&& test -d "${tmpdir}" \
&& cd "${tmpdir}"
umask $save_umask
} || {
echo 'mktemp failed'
exit 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment