summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-03-05 16:23:14 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-05 17:41:56 +0100
commit2ba16c5a5c4b6d3cd2a44179186ec60eda828bcd (patch)
tree8b12cc51ec31c968cfd77524ffcb4dd73a11ce76 /src/db
parent1402e7140d143aaf48224c23182c2c12c2a89cd7 (diff)
downloadsssd-2ba16c5a5c4b6d3cd2a44179186ec60eda828bcd.tar.gz
sssd-2ba16c5a5c4b6d3cd2a44179186ec60eda828bcd.tar.bz2
sssd-2ba16c5a5c4b6d3cd2a44179186ec60eda828bcd.zip
Remove the alt_db_path parameter of sysdb_init
This parameter was never used. https://fedorahosted.org/sssd/ticket/1765
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.c12
-rw-r--r--src/db/sysdb.h1
2 files changed, 2 insertions, 11 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 7c347912..da5dbe84 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -1207,23 +1207,15 @@ done:
int sysdb_init(TALLOC_CTX *mem_ctx,
struct sss_domain_info *domains,
- const char *alt_db_path,
bool allow_upgrade)
{
struct sss_domain_info *dom;
struct sysdb_ctx *sysdb;
- const char *db_path;
int ret;
- if (alt_db_path) {
- db_path = alt_db_path;
- } else {
- db_path = DB_PATH;
- }
-
if (allow_upgrade) {
/* check if we have an old sssd.ldb to upgrade */
- ret = sysdb_check_upgrade_02(domains, db_path);
+ ret = sysdb_check_upgrade_02(domains, DB_PATH);
if (ret != EOK) {
return ret;
}
@@ -1232,7 +1224,7 @@ int sysdb_init(TALLOC_CTX *mem_ctx,
/* open a db for each domain */
for (dom = domains; dom; dom = dom->next) {
- ret = sysdb_domain_init_internal(mem_ctx, dom, db_path,
+ ret = sysdb_domain_init_internal(mem_ctx, dom, DB_PATH,
allow_upgrade, &sysdb);
if (ret != EOK) {
return ret;
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 23cbbb0d..fb5e6450 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -385,7 +385,6 @@ errno_t sysdb_update_ranges(struct sysdb_ctx *sysdb,
* the sysdb ctx */
int sysdb_init(TALLOC_CTX *mem_ctx,
struct sss_domain_info *domains,
- const char *alt_db_path,
bool allow_upgrade);
/* used to initialize only one domain database.
* Do NOT use if sysdb_init has already been called */