git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfc59f6
)
Ignore 3.0 style invalid group mappings during upgrade to ldb
author
Volker Lendecke
<vl@samba.org>
Tue, 4 Nov 2008 09:51:08 +0000
(10:51 +0100)
committer
Volker Lendecke
<vl@samba.org>
Tue, 4 Nov 2008 09:56:24 +0000
(10:56 +0100)
source3/groupdb/mapping_ldb.c
patch
|
blob
|
history
diff --git
a/source3/groupdb/mapping_ldb.c
b/source3/groupdb/mapping_ldb.c
index 1a6b99fa189540c08ebd1d20f1b8fdd7fbdf890d..db3215552f20b835e66a87e83d2f2f292b66e610 100644
(file)
--- a/
source3/groupdb/mapping_ldb.c
+++ b/
source3/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;