summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-08-11 17:21:11 +1000
committerMichael Adam <obnox@samba.org>2008-08-12 21:37:01 +0200
commit89dc729443fad26da346b8ef8d3ce596449ab7f9 (patch)
tree58c7ff2fb903f10ba6ac1485229052c9478b73c2 /source3/lib
parent1759f089e1424311de8437e7923ba40838dba9ef (diff)
downloadsamba-89dc729443fad26da346b8ef8d3ce596449ab7f9.tar.gz
samba-89dc729443fad26da346b8ef8d3ce596449ab7f9.tar.bz2
samba-89dc729443fad26da346b8ef8d3ce596449ab7f9.zip
ensure we give an error code to any routines above that are looking
for one (This used to be commit 469ba9b87103aa0053c371e481acc5acf0f98ac1)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/dbwrap.c b/source3/lib/dbwrap.c
index eec15a84bd..ff200c35c0 100644
--- a/source3/lib/dbwrap.c
+++ b/source3/lib/dbwrap.c
@@ -83,6 +83,9 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx,
if (result == NULL) {
DEBUG(0,("failed to attach to ctdb %s\n",
partname));
+ if (errno == 0) {
+ errno = EIO;
+ }
return NULL;
}
}