Sumit caught a bug in my recent case-sensitivity patch. Here's the
one-line fix.

After completing an upgrade successfully, we were still falling
into the "version not found" case. We should be exiting the
function after performing the upgrade.
-- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
From 3a3503dd70e70c9ec948f38b6d7743ce75dab2a9 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgall...@redhat.com>
Date: Thu, 19 Nov 2009 08:20:41 -0500
Subject: [PATCH] Fix sysdb upgrade bug

After completing an upgrade successfully, we were still falling
into the "version not found" case. We should be exiting the
function after performing the upgrade.
---
 server/db/sysdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index db68794..b59ffa4 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -1290,7 +1290,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
 
             if (strcmp(version, SYSDB_VERSION_0_3) == 0) {
                 ret = sysdb_upgrade_03(ctx, &version);
-                if (ret != EOK) goto done;
+                goto done;
             }
 
         }
-- 
1.6.2.5

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to