From 8c77f1f01f16c05cd8867584b5acf181ef8ce9e0 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 24 Nov 2008 11:23:10 -0500 Subject: Replacing hard-coded paths with configure script substitutions. Changing the default SBUS locations to be configure script parameters --- server/monitor.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'server/monitor.c') diff --git a/server/monitor.c b/server/monitor.c index 4916e448..5c2ec992 100644 --- a/server/monitor.c +++ b/server/monitor.c @@ -114,14 +114,23 @@ static int monitor_dbus_init(struct mt_ctx *ctx) { struct sbus_method_ctx *sd_ctx; char *sbus_address; + char *default_monitor_address; int ret; + default_monitor_address = talloc_asprintf(ctx, "unix:path=%s/%s", + PIPE_PATH, SSSD_SERVICE_PIPE); + if (!default_monitor_address) { + return ENOMEM; + } + ret = confdb_get_string(ctx->cdb, ctx, "config/services/monitor", "sbusAddress", - DEFAULT_SBUS_ADDRESS, &sbus_address); + default_monitor_address, &sbus_address); if (ret != EOK) { + talloc_free(default_monitor_address); return ret; } + talloc_free(default_monitor_address); sd_ctx = talloc_zero(ctx, struct sbus_method_ctx); if (!sd_ctx) { -- cgit