r10477: expose transactions outside ldb and change the API once more
[kamenim/samba.git] / source4 / lib / ldb / tools / ldbadd.c
index ba58f782f09e72d9429563a8594408ac5c3ace01..058f4dc751b0770b7db7e65a1946a90639caf591 100644 (file)
@@ -75,7 +75,7 @@ static int process_file(struct ldb_context *ldb, FILE *f)
                ldif->msg = ldb_msg_canonicalize(ldb, ldif->msg);
 
                ret = ldb_add(ldb, ldif->msg);
-               if (ret != LDB_ERR_SUCCESS) {
+               if (ret != LDB_SUCCESS) {
                        fprintf(stderr, "ERR: \"%s\" on DN %s\n", 
                                ldb_errstring(ldb), ldb_dn_linearize(ldb, ldif->msg->dn));
                        failures++;