diff options
author | Matt McCutchen <matt@mattmccutchen.net> | 2008-11-10 08:55:27 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-01-06 18:20:13 -0500 |
commit | 6663d1dd35f94717209cd6fca86045bca853ef79 (patch) | |
tree | 116860d652ea821fe147e302db6e9cb4fa91c024 /bus/bus.c | |
parent | 9928648f16afd45078fb93116b6529a7dcca80dc (diff) | |
download | dbus-6663d1dd35f94717209cd6fca86045bca853ef79.tar.gz |
Bug 18446: Keep umask for session bus
Signed-off-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'bus/bus.c')
-rw-r--r-- | bus/bus.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -55,6 +55,7 @@ struct BusContext BusLimits limits; unsigned int fork : 1; unsigned int syslog : 1; + unsigned int keep_umask : 1; }; static dbus_int32_t server_data_slot = -1; @@ -386,6 +387,7 @@ process_config_first_time_only (BusContext *context, context->fork = bus_config_parser_get_fork (parser); context->syslog = bus_config_parser_get_syslog (parser); + context->keep_umask = bus_config_parser_get_keep_umask (parser); _DBUS_ASSERT_ERROR_IS_CLEAR (error); retval = TRUE; @@ -710,7 +712,8 @@ bus_context_new (const DBusString *config_file, if (!_dbus_become_daemon (context->pidfile ? &u : NULL, print_pid_pipe, - error)) + error, + context->keep_umask)) { _DBUS_ASSERT_ERROR_IS_SET (error); goto failed; |