summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/tools/ldbrename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbrename.c b/source4/lib/ldb/tools/ldbrename.c
index 7473a77fda..e4087f42b8 100644
--- a/source4/lib/ldb/tools/ldbrename.c
+++ b/source4/lib/ldb/tools/ldbrename.c
@@ -65,7 +65,7 @@ int main(int argc, const char **argv)
dn2 = ldb_dn_new(ldb, ldb, options->argv[1]);
ret = ldb_rename(ldb, dn1, dn2);
- if (ret == 0) {
+ if (ret == LDB_SUCCESS) {
printf("Renamed 1 record\n");
} else {
printf("rename of '%s' to '%s' failed - %s\n",