summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-09-23 18:37:04 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-24 18:18:30 +0200
commit77f445dbaecc8e792e1ad42e3742800ad141bee0 (patch)
tree97893e9fc031bd1c4156870fd68cb99d24b3dd1e /src/db/sysdb.c
parente75a152157e054a2ed46acecbe8b5cfb9853773c (diff)
downloadsssd-77f445dbaecc8e792e1ad42e3742800ad141bee0.tar.gz
sssd-77f445dbaecc8e792e1ad42e3742800ad141bee0.tar.xz
sssd-77f445dbaecc8e792e1ad42e3742800ad141bee0.zip
AUTOFS: convert the existing autofs entries during a sysdb upgrade
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r--src/db/sysdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 3354cc43e..e949cafdc 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -1097,6 +1097,13 @@ int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
}
}
+ if (strcmp(version, SYSDB_VERSION_0_11) == 0) {
+ ret = sysdb_upgrade_11(sysdb, &version);
+ if (ret != EOK) {
+ goto done;
+ }
+ }
+
/* The version should now match SYSDB_VERSION.
* If not, it means we didn't match any of the
* known older versions. The DB might be