aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslinux/update-extlinux
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-26 14:16:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-26 14:42:28 +0000
commit8ded1f134b51cdc2229dff4ed5edc5aea041d834 (patch)
tree1256e2086073e26fe6f96ad151dad8d37d2201ca /main/syslinux/update-extlinux
parenta795740c66e926fb724b527c6bbff3c6f9c18b61 (diff)
downloadaports-8ded1f134b51cdc2229dff4ed5edc5aea041d834.tar.bz2
aports-8ded1f134b51cdc2229dff4ed5edc5aea041d834.tar.xz
main/syslinux: set umask in update-exlinux
so extlinux.conf don't end up as world writeable
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-xmain/syslinux/update-extlinux2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 2de06e259a..157d33529f 100755
--- a/main/syslinux/update-extlinux
+++ b/main/syslinux/update-extlinux
@@ -78,6 +78,8 @@ fi
everbose "Installing $syslinux_menu to /boot."
cp /usr/share/syslinux/vesamenu.c32 /boot
+umask 0022
+rm -f $conf.new
echo "# Generated by update-extlinux" > $conf.new
echo "DEFAULT $syslinux_menu" >> $conf.new
echo "PROMPT 0" >> $conf.new