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/rc-local-generator/rc-local-generator.c | |
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/rc-local-generator/rc-local-generator.c')
-rw-r--r-- | src/rc-local-generator/rc-local-generator.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rc-local-generator/rc-local-generator.c b/src/rc-local-generator/rc-local-generator.c index 9135aca07e..a8dc68bccc 100644 --- a/src/rc-local-generator/rc-local-generator.c +++ b/src/rc-local-generator/rc-local-generator.c @@ -54,8 +54,6 @@ int main(int argc, char *argv[]) { log_setup_generator(); - umask(0022); - if (access(RC_LOCAL_SCRIPT_PATH_START, X_OK) >= 0) { log_debug("Automatically adding rc-local.service."); |