summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator
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/gpt-auto-generator
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/gpt-auto-generator')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 03942e94ea..1ca071e999 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -681,8 +681,6 @@ int main(int argc, char *argv[]) {
log_setup_generator();
- umask(0022);
-
if (detect_container() > 0) {
log_debug("In a container, exiting.");
return EXIT_SUCCESS;