[PATCH 5/8] ldb:ldbrename tool - use LDB result constant where needed

Matthias Dieter Wallnöfer mdw at samba.org
Fri Jan 14 04:38:10 MST 2011


---
 source4/lib/ldb/tools/ldbrename.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/source4/lib/ldb/tools/ldbrename.c b/source4/lib/ldb/tools/ldbrename.c
index 7473a77..e4087f4 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", 
-- 
1.7.3.4




More information about the samba-technical mailing list