From bd727a967d313f0c2552c7de36b5b85e043f250a Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 14 Jan 2011 12:38:10 +0100 Subject: ldb:ldbrename tool - use LDB result constant where needed --- source4/lib/ldb/tools/ldbrename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit