[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4334-g1b71b12

Volker Lendecke vlendec at samba.org
Tue Nov 4 10:15:25 GMT 2008


The branch, v3-3-test has been updated
       via  1b71b12259d1a123c96a75c88202a59cae475b2a (commit)
      from  de16b8982f76e82ffd00d3ad66b24d239c5e8c9f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 1b71b12259d1a123c96a75c88202a59cae475b2a
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Nov 4 10:51:08 2008 +0100

    Ignore 3.0 style invalid group mappings during upgrade to ldb

-----------------------------------------------------------------------

Summary of changes:
 source/groupdb/mapping_ldb.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/groupdb/mapping_ldb.c b/source/groupdb/mapping_ldb.c
index 7ce879f..68e5b4c 100644
--- a/source/groupdb/mapping_ldb.c
+++ b/source/groupdb/mapping_ldb.c
@@ -574,6 +574,13 @@ static int upgrade_map_record(TDB_CONTEXT *tdb_ctx, TDB_DATA key,
 		return -1;
 	}
 
+	if ((int)map.gid == -1) {
+		/*
+		 * Ignore old invalid mappings
+		 */
+		return 0;
+	}
+
 	if (!add_mapping_entry(&map, 0)) {
 		DEBUG(0,("Failed to add mapping entry during upgrade\n"));
 		*(int *)state = -1;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list