diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-01-14 12:38:10 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-02-09 18:59:19 +0100 |
commit | bd727a967d313f0c2552c7de36b5b85e043f250a (patch) | |
tree | 098d3cdbf26bd19180082af9e08931e0f2a866c3 | |
parent | ef0477a0b92d2e46bf78446c8beb55e16ca3128b (diff) | |
download | samba-bd727a967d313f0c2552c7de36b5b85e043f250a.tar.gz samba-bd727a967d313f0c2552c7de36b5b85e043f250a.tar.bz2 samba-bd727a967d313f0c2552c7de36b5b85e043f250a.zip |
ldb:ldbrename tool - use LDB result constant where needed
-rw-r--r-- | 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 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", |