pacman-db-upgrade: set umask 022
This prevents the database from becoming inaccessible for non-root users when the script was executed with a umask of 027. Signed-off-by: Peter Wu <peter@lekensteyn.nl> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
325e20dea1
commit
a1c50a08c9
|
@ -19,6 +19,9 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Avoid creating world-unreadable files
|
||||||
|
umask 022
|
||||||
|
|
||||||
# gettext initialization
|
# gettext initialization
|
||||||
export TEXTDOMAIN='pacman-scripts'
|
export TEXTDOMAIN='pacman-scripts'
|
||||||
export TEXTDOMAINDIR='@localedir@'
|
export TEXTDOMAINDIR='@localedir@'
|
||||||
|
|
Loading…
Reference in New Issue