diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-21 10:12:00 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-21 13:40:24 +0100 |
commit | 053254e3cb215df3b8c905bc39b920f8817e1c7d (patch) | |
tree | 02673186233fa79938f75b78a16245c593d3e29b /src/getty-generator | |
parent | core: Detect initial timer state from serialized data (diff) | |
download | systemd-053254e3cb215df3b8c905bc39b920f8817e1c7d.tar.xz systemd-053254e3cb215df3b8c905bc39b920f8817e1c7d.zip |
generators: drop umask calls
systemd already sets the umask (see e3b8d0637dd755b3426f3363b2cdad63f738116c). 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'
Diffstat (limited to 'src/getty-generator')
-rw-r--r-- | src/getty-generator/getty-generator.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/getty-generator/getty-generator.c b/src/getty-generator/getty-generator.c index 8015154679..e2e07bca76 100644 --- a/src/getty-generator/getty-generator.c +++ b/src/getty-generator/getty-generator.c @@ -123,8 +123,6 @@ int main(int argc, char *argv[]) { log_setup_generator(); - umask(0022); - if (detect_container() > 0) { _cleanup_free_ char *container_ttys = NULL; |