main: set umask before creating any files
authorMike Gilbert <floppym@gentoo.org>
Thu, 26 Sep 2013 18:39:41 +0000 (20:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Sep 2013 18:39:44 +0000 (20:39 +0200)
commit90dc8c2ea2cebf2dd195abe4768205a831fd32cb
tree6fdf3c25d4f62cae4873c53aa7f5be07e4e7ad75
parent299404a19f26aa4f203042d8285ee0b7afa5bf40
main: set umask before creating any files

This avoids a problem when we inherit a non-zero umask from the
initramfs. This would cause /run/systemd to be created with the wrong
mode.
src/core/main.c