diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-08-11 17:21:11 +1000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-08-12 21:37:01 +0200 |
commit | 89dc729443fad26da346b8ef8d3ce596449ab7f9 (patch) | |
tree | 58c7ff2fb903f10ba6ac1485229052c9478b73c2 /source3/lib/dbwrap.c | |
parent | 1759f089e1424311de8437e7923ba40838dba9ef (diff) | |
download | samba-89dc729443fad26da346b8ef8d3ce596449ab7f9.tar.gz |
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/dbwrap.c')
-rw-r--r-- | source3/lib/dbwrap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/dbwrap.c b/source3/lib/dbwrap.c index eec15a84bd6..ff200c35c06 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; } } |