From ab75c563704fa86c409072bf1b0938e005aff5ca Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 4 Aug 2006 22:18:02 +0000 Subject: r17408: Let us use netgroups even without a NIS domain but just using files (This used to be commit c065341d3ffc9125514f563c63d416cf7c40375f) --- source3/lib/access.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/access.c b/source3/lib/access.c index fcc795d1f2..303e3ed4c4 100644 --- a/source3/lib/access.c +++ b/source3/lib/access.c @@ -83,8 +83,7 @@ static BOOL string_match(const char *tok,const char *s, char *invalid_char) yp_get_default_domain(&mydomain); if (!mydomain) { - DEBUG(0,("Unable to get default yp domain.\n")); - return False; + DEBUG(0,("Unable to get default yp domain. Try without it.\n")); } if (!(hostname = SMB_STRDUP(s))) { DEBUG(1,("out of memory for strdup!\n")); @@ -95,7 +94,7 @@ static BOOL string_match(const char *tok,const char *s, char *invalid_char) DEBUG(5,("looking for %s of domain %s in netgroup %s gave %s\n", hostname, - mydomain, + mydomain?mydomain:"(ANY)", tok+1, BOOLSTR(netgroup_ok))); -- cgit