summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
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 7c3479125..da5dbe84c 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 23cbbb0d4..fb5e64507 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 */