summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-01-14 12:38:10 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-02-09 18:59:19 +0100
commitbd727a967d313f0c2552c7de36b5b85e043f250a (patch)
tree098d3cdbf26bd19180082af9e08931e0f2a866c3 /source4/lib
parentef0477a0b92d2e46bf78446c8beb55e16ca3128b (diff)
downloadsamba-bd727a967d313f0c2552c7de36b5b85e043f250a.tar.gz
samba-bd727a967d313f0c2552c7de36b5b85e043f250a.tar.bz2
samba-bd727a967d313f0c2552c7de36b5b85e043f250a.zip
ldb:ldbrename tool - use LDB result constant where needed
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",