diff options
author | Pavel Březina <pbrezina@redhat.com> | 2016-06-15 15:41:34 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-27 16:34:58 +0200 |
commit | d2d8f342cd5e90bb9fd947c448492225f959aa86 (patch) | |
tree | d641f74b47ab7ee90ed77bc064e658d2cab8ed3d /src/confdb/confdb_setup.h | |
parent | aea1d5c0ca9bb1470759b024c8b97b6c1f577193 (diff) | |
download | sssd-d2d8f342cd5e90bb9fd947c448492225f959aa86.tar.gz sssd-d2d8f342cd5e90bb9fd947c448492225f959aa86.tar.xz sssd-d2d8f342cd5e90bb9fd947c448492225f959aa86.zip |
sss_tools: create confdb if not exist
So tools (especially sssctl) may be run even when databases where
removed.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/confdb/confdb_setup.h')
-rw-r--r-- | src/confdb/confdb_setup.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/confdb/confdb_setup.h b/src/confdb/confdb_setup.h index 2b8802f6f..197673d29 100644 --- a/src/confdb/confdb_setup.h +++ b/src/confdb/confdb_setup.h @@ -45,8 +45,9 @@ "version: "CONFDB_VERSION"\n" \ "\n" -int confdb_create_base(struct confdb_ctx *cdb); -int confdb_test(struct confdb_ctx *cdb); -int confdb_init_db(const char *config_file, struct confdb_ctx *cdb); +errno_t confdb_setup(TALLOC_CTX *mem_ctx, + const char *cdb_file, + const char *config_file, + struct confdb_ctx **_cdb); #endif /* CONFDB_SETUP_H_ */ |