diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-08-01 20:51:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-08-01 20:51:18 +0200 |
commit | 07f8a4aa49a84ec61513788d5ddf521f3de5a0ba (patch) | |
tree | 7b3f36247c86413b72744b34590531f84b285d8a /src | |
parent | c375a7f750d0ac3ab130b8d84ebbcbbf32b96c72 (diff) |
manager: call generators with umask 0022
Diffstat (limited to 'src')
-rw-r--r-- | src/manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c index 9e4bd51d5c..69dbec4347 100644 --- a/src/manager.c +++ b/src/manager.c @@ -2985,6 +2985,7 @@ void manager_run_generators(Manager *m) { DIR *d = NULL; const char *generator_path; const char *argv[3]; + mode_t u; assert(m); @@ -3027,7 +3028,9 @@ void manager_run_generators(Manager *m) { argv[1] = m->generator_unit_path; argv[2] = NULL; + u = umask(0022); execute_directory(generator_path, d, (char**) argv); + umask(u); if (rmdir(m->generator_unit_path) >= 0) { /* Uh? we were able to remove this dir? I guess that |