summaryrefslogtreecommitdiff
path: root/src/system-update-generator/system-update-generator.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-21 10:12:00 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-21 13:40:24 +0100
commit053254e3cb215df3b8c905bc39b920f8817e1c7d (patch)
tree02673186233fa79938f75b78a16245c593d3e29b /src/system-update-generator/system-update-generator.c
parentaa1f95d2647197eca84c33a0f10adaeada08467d (diff)
downloadsystemd-053254e3cb215df3b8c905bc39b920f8817e1c7d.tar.gz
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/system-update-generator/system-update-generator.c')
-rw-r--r--src/system-update-generator/system-update-generator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c
index 4b7d7d58cd..06062e4510 100644
--- a/src/system-update-generator/system-update-generator.c
+++ b/src/system-update-generator/system-update-generator.c
@@ -64,8 +64,6 @@ int main(int argc, char *argv[]) {
log_setup_generator();
- umask(0022);
-
r = generate_symlink();
if (r > 0) {