[PATCH 1/2] cygheap_pwdgrp: Don't invent undocumented defaults in nsswitch.conf

David Macek david.macek.0@gmail.com
Fri Apr 17 09:30:51 GMT 2020


---
 winsup/cygwin/uinfo.cc | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 57d90189d3..227faa4248 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -831,12 +831,6 @@ cygheap_pwdgrp::nss_init_line (const char *line)
 		  c += strspn (c, " \t");
 		  ++idx;
 		}
-	      /* If nothing has been set, revert to default. */
-	      if (scheme[0].method == NSS_SCHEME_FALLBACK)
-		{
-		  scheme[0].method = NSS_SCHEME_CYGWIN;
-		  scheme[1].method = NSS_SCHEME_DESC;
-		}
 	    }
 	}
       break;
-- 
2.26.1.windows.1



More information about the Cygwin-patches mailing list