From 469ba9b87103aa0053c371e481acc5acf0f98ac1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Aug 2008 17:21:11 +1000 Subject: [PATCH] ensure we give an error code to any routines above that are looking for one --- source/lib/dbwrap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/lib/dbwrap.c b/source/lib/dbwrap.c index eec15a84bd6..ff200c35c06 100644 --- a/source/lib/dbwrap.c +++ b/source/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; } } -- 2.11.4.GIT