diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-26 14:16:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-26 14:42:28 +0000 |
commit | 8ded1f134b51cdc2229dff4ed5edc5aea041d834 (patch) | |
tree | 1256e2086073e26fe6f96ad151dad8d37d2201ca | |
parent | a795740c66e926fb724b527c6bbff3c6f9c18b61 (diff) | |
download | alpine_aports-8ded1f134b51cdc2229dff4ed5edc5aea041d834.tar.bz2 alpine_aports-8ded1f134b51cdc2229dff4ed5edc5aea041d834.tar.xz alpine_aports-8ded1f134b51cdc2229dff4ed5edc5aea041d834.zip |
main/syslinux: set umask in update-exlinux
so extlinux.conf don't end up as world writeable
-rw-r--r-- | main/syslinux/APKBUILD | 4 | ||||
-rwxr-xr-x | main/syslinux/update-extlinux | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/main/syslinux/APKBUILD b/main/syslinux/APKBUILD index daf06fb52d..ba4b1e03d1 100644 --- a/main/syslinux/APKBUILD +++ b/main/syslinux/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=syslinux | 2 | pkgname=syslinux |
3 | pkgver=4.04 | 3 | pkgver=4.04 |
4 | pkgrel=9 | 4 | pkgrel=10 |
5 | pkgdesc="Boot loader for the Linux operating system" | 5 | pkgdesc="Boot loader for the Linux operating system" |
6 | url="http://syslinux.org" | 6 | url="http://syslinux.org" |
7 | arch="x86 x86_64" | 7 | arch="x86 x86_64" |
@@ -38,4 +38,4 @@ package() { | |||
38 | 38 | ||
39 | md5sums="a3936208767eb7ced65320abe2e33a10 syslinux-4.04.tar.bz2 | 39 | md5sums="a3936208767eb7ced65320abe2e33a10 syslinux-4.04.tar.bz2 |
40 | 7ef73a7a858b8aa1ac6635d6391ac8e5 update-extlinux.conf | 40 | 7ef73a7a858b8aa1ac6635d6391ac8e5 update-extlinux.conf |
41 | 2206105f11b92971abb768ac0aa2e7d8 update-extlinux" | 41 | 2414de8196826e20292825d69c75184b update-extlinux" |
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 | |||
78 | everbose "Installing $syslinux_menu to /boot." | 78 | everbose "Installing $syslinux_menu to /boot." |
79 | cp /usr/share/syslinux/vesamenu.c32 /boot | 79 | cp /usr/share/syslinux/vesamenu.c32 /boot |
80 | 80 | ||
81 | umask 0022 | ||
82 | rm -f $conf.new | ||
81 | echo "# Generated by update-extlinux" > $conf.new | 83 | echo "# Generated by update-extlinux" > $conf.new |
82 | echo "DEFAULT $syslinux_menu" >> $conf.new | 84 | echo "DEFAULT $syslinux_menu" >> $conf.new |
83 | echo "PROMPT 0" >> $conf.new | 85 | echo "PROMPT 0" >> $conf.new |