From 89dc729443fad26da346b8ef8d3ce596449ab7f9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Aug 2008 17:21:11 +1000 Subject: ensure we give an error code to any routines above that are looking for one (This used to be commit 469ba9b87103aa0053c371e481acc5acf0f98ac1) --- source3/lib/dbwrap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib/dbwrap.c') 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; } } -- cgit