1From fcb8ecd530b2d151e373974741601483326f7528 Mon Sep 17 00:00:00 2001 2From: Changqing Li <changqing.li@windriver.com> 3Date: Thu, 27 Jun 2019 11:09:47 +0800 4Subject: [PATCH] samba: fix musl lib without innetgr 5 6Upstream-Status: Pending 7 8Signed-off-by: Changqing Li <changqing.li@windriver.com> 9--- 10 lib/util/access.c | 2 +- 11 source3/auth/user_util.c | 2 +- 12 2 file changed, 2 insertion(+), 2 deletion(-) 13 14diff --git a/lib/util/access.c b/lib/util/access.c 15index 7da0573..b94949e 100644 16--- a/lib/util/access.c 17+++ b/lib/util/access.c 18@@ -112,7 +112,7 @@ static bool string_match(const char *tok,const char *s) 19 return true; 20 } 21 } else if (tok[0] == '@') { /* netgroup: look it up */ 22-#ifdef HAVE_NETGROUP 23+#if defined(HAVE_NETGROUP) && defined(HAVE_INNETGR) 24 DATA_BLOB tmp; 25 char *mydomain = NULL; 26 char *hostname = NULL; 27diff --git a/source3/auth/user_util.c b/source3/auth/user_util.c 28index a76b5d4..30f523d 100644 29--- a/source3/auth/user_util.c 30+++ b/source3/auth/user_util.c 31@@ -148,7 +148,7 @@ static void store_map_in_gencache(TALLOC_CTX *ctx, const char *from, const char 32 33 bool user_in_netgroup(TALLOC_CTX *ctx, const char *user, const char *ngname) 34 { 35-#ifdef HAVE_NETGROUP 36+#if defined(HAVE_NETGROUP) && defined(HAVE_INNETGR) 37 static char *my_yp_domain = NULL; 38 char *lowercase_user = NULL; 39 40-- 412.7.4 42 43