diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2011-12-14 07:20:11 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-21 21:28:49 -0500 |
commit | 3bea01f01d76e1e95a8239c0d3f67073992136a1 (patch) | |
tree | 5da8c3f66905726489fcffba5934db221f6dbed4 /src/tools | |
parent | 3e5caddf4840e40b49ccf24e1ce7b531a692023b (diff) | |
download | sssd-3bea01f01d76e1e95a8239c0d3f67073992136a1.tar.gz sssd-3bea01f01d76e1e95a8239c0d3f67073992136a1.tar.bz2 sssd-3bea01f01d76e1e95a8239c0d3f67073992136a1.zip |
Don't give memory context in confdb where not needed
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/sss_sync_ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c index 79de8fc8..380e6127 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) { |