]> git.pond.sub.org Git - empserver/commitdiff
(verify_row): uid check was too strict.
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 5 Apr 2006 18:47:02 +0000 (18:47 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 5 Apr 2006 18:47:02 +0000 (18:47 +0000)
src/lib/common/ef_verify.c

index 5cf675c8d3a5644df2ddf864250b2f419f7225d1..1f803d3cf8d9284ed61a8ccd75494da9c38c9768 100644 (file)
@@ -115,6 +115,10 @@ verify_row(int type, int row)
                }
            } else if (ca[i].ca_table == type && i == 0) {
                /* uid */
+               /* Some files contain zeroed records, cope */
+               /* TODO tighten this check */
+               if (val.val_as.lng == 0)
+                   continue;
                if (val.val_as.lng != row) {
                    verify_fail(type, row, &ca[i],
                                "value is %ld instead of %d",