generators: drop umask calls

systemd already sets the umask (see e3b8d0637d). When
running under systemd, we don't need to set it. And when *not* running under
systemd, for example during development, there is no reason to override the user
config. Let's just drop those calls.

$ git grep -e 'umask\(' -l 'src/*generator*' |xargs perl -i -0pe 's|^[^\n]*umask\([^\n]+\n\n||gms'
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-11-21 13:40:24 +01:00
parent aa1f95d264
commit 053254e3cb
11 changed files with 0 additions and 22 deletions
-2
View File
@@ -155,8 +155,6 @@ static int run(int argc, char *argv[]) {
log_setup_generator();
umask(0022);
r = proc_cmdline_parse(parse_proc_cmdline_item, NULL, PROC_CMDLINE_RD_STRICT | PROC_CMDLINE_STRIP_RD_PREFIX);
if (r < 0)
log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");