summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbdel.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-10-14 08:26:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:00 -0500
commit04140ac3c75e3bdb2fad4b534d86c5fafabe58c5 (patch)
tree096a441eec0ee764446164eebfa002452d1ed977 /source4/lib/ldb/tools/ldbdel.c
parent2ad8e1443de55a005cb9249ba317ab8541ec7c90 (diff)
downloadsamba-04140ac3c75e3bdb2fad4b534d86c5fafabe58c5.tar.gz
samba-04140ac3c75e3bdb2fad4b534d86c5fafabe58c5.tar.bz2
samba-04140ac3c75e3bdb2fad4b534d86c5fafabe58c5.zip
r19274: fix ldbdel and ldbmodify to return an error if the underlying ldb call
fails (This used to be commit 330a722f1330059cbba19f99210a1a5a7c773a36)
Diffstat (limited to 'source4/lib/ldb/tools/ldbdel.c')
-rw-r--r--source4/lib/ldb/tools/ldbdel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbdel.c b/source4/lib/ldb/tools/ldbdel.c
index aee911efaf..94f1da9903 100644
--- a/source4/lib/ldb/tools/ldbdel.c
+++ b/source4/lib/ldb/tools/ldbdel.c
@@ -76,7 +76,7 @@ static void usage(void)
int main(int argc, const char **argv)
{
struct ldb_context *ldb;
- int ret, i;
+ int ret = 0, i;
struct ldb_cmdline *options;
ldb_global_init();
@@ -115,5 +115,5 @@ int main(int argc, const char **argv)
talloc_free(ldb);
- return 0;
+ return ret;
}