diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-06-05 15:36:28 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-05 10:07:52 -0400 |
commit | 7733e4179f56fb0ca41788b5d8de2ee1130b1bad (patch) | |
tree | ae1fad581976b833e28f71ca7d29568473ef0636 /src/db | |
parent | 0fe2b52d476afbc7ea0c9e0740cd7cf364ca8d23 (diff) | |
download | sssd-7733e4179f56fb0ca41788b5d8de2ee1130b1bad.tar.gz sssd-7733e4179f56fb0ca41788b5d8de2ee1130b1bad.tar.bz2 sssd-7733e4179f56fb0ca41788b5d8de2ee1130b1bad.zip |
Fix the 0.11 sysdb upgrade
The block that upgraded the version was at a wrong indentation level, so
it never ran if there were no fake users to convert
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_upgrade.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/db/sysdb_upgrade.c b/src/db/sysdb_upgrade.c index b2dd7daf..43eff7a0 100644 --- a/src/db/sysdb_upgrade.c +++ b/src/db/sysdb_upgrade.c @@ -1277,36 +1277,36 @@ int sysdb_upgrade_10(struct sysdb_ctx *sysdb, const char **ver) ret = sysdb_error_to_errno(ret); goto done; } + } - /* conversion done, upgrade version number */ - msg = ldb_msg_new(tmp_ctx); - if (!msg) { - ret = ENOMEM; - goto done; - } - msg->dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_BASE); - if (!msg->dn) { - ret = ENOMEM; - goto done; - } + /* conversion done, upgrade version number */ + msg = ldb_msg_new(tmp_ctx); + if (!msg) { + ret = ENOMEM; + goto done; + } + msg->dn = ldb_dn_new(tmp_ctx, sysdb->ldb, SYSDB_BASE); + if (!msg->dn) { + ret = ENOMEM; + goto done; + } - ret = ldb_msg_add_empty(msg, "version", LDB_FLAG_MOD_REPLACE, NULL); - if (ret != LDB_SUCCESS) { - ret = ENOMEM; - goto done; - } + ret = ldb_msg_add_empty(msg, "version", LDB_FLAG_MOD_REPLACE, NULL); + if (ret != LDB_SUCCESS) { + ret = ENOMEM; + goto done; + } - ret = ldb_msg_add_string(msg, "version", SYSDB_VERSION_0_11); - if (ret != LDB_SUCCESS) { - ret = ENOMEM; - goto done; - } + ret = ldb_msg_add_string(msg, "version", SYSDB_VERSION_0_11); + if (ret != LDB_SUCCESS) { + ret = ENOMEM; + goto done; + } - ret = ldb_modify(sysdb->ldb, msg); - if (ret != LDB_SUCCESS) { - ret = sysdb_error_to_errno(ret); - goto done; - } + ret = ldb_modify(sysdb->ldb, msg); + if (ret != LDB_SUCCESS) { + ret = sysdb_error_to_errno(ret); + goto done; } ret = EOK; |