From: Andrew Tridgell Date: Mon, 11 Aug 2008 07:21:11 +0000 (+1000) Subject: ensure we give an error code to any routines above that are looking X-Git-Tag: samba-3.3.0pre1~212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=469ba9b87103aa0053c371e481acc5acf0f98ac1;p=thirdparty%2Fsamba.git ensure we give an error code to any routines above that are looking for one --- 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; } }