From 3bea01f01d76e1e95a8239c0d3f67073992136a1 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Wed, 14 Dec 2011 07:20:11 -0500 Subject: Don't give memory context in confdb where not needed --- src/tools/sss_sync_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tools/sss_sync_ops.c') diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c index 79de8fc8c..380e61275 100644 --- a/src/tools/sss_sync_ops.c +++ b/src/tools/sss_sync_ops.c @@ -317,7 +317,7 @@ int userdel_defaults(TALLOC_CTX *mem_ctx, /* remove homedir on user creation? */ if (!remove_home) { - ret = confdb_get_bool(confdb, mem_ctx, + ret = confdb_get_bool(confdb, conf_path, CONFDB_LOCAL_REMOVE_HOMEDIR, DFL_REMOVE_HOMEDIR, &dfl_remove_home); if (ret != EOK) { @@ -408,7 +408,7 @@ int useradd_defaults(TALLOC_CTX *mem_ctx, /* create homedir on user creation? */ if (!create_home) { - ret = confdb_get_bool(confdb, mem_ctx, + ret = confdb_get_bool(confdb, conf_path, CONFDB_LOCAL_CREATE_HOMEDIR, DFL_CREATE_HOMEDIR, &data->create_homedir); if (ret != EOK) { @@ -420,7 +420,7 @@ int useradd_defaults(TALLOC_CTX *mem_ctx, DEBUG(7, ("Auto create homedir: %s\n", data->create_homedir?"True":"False")); /* umask to create homedirs */ - ret = confdb_get_int(confdb, mem_ctx, + ret = confdb_get_int(confdb, conf_path, CONFDB_LOCAL_UMASK, DFL_UMASK, (int *) &data->umask); if (ret != EOK) { -- cgit