[openssh-commits] [openssh] 01/08: Create replacement netgroup.h if needed.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Sep 5 20:14:24 AEST 2025


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit caa973dd06a7be43c29353b256c9a473f5ad9882
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Fri Sep 5 19:13:52 2025 +1000

    Create replacement netgroup.h if needed.
    
    Remove #ifdef HAVE_NETGROUP_H wrapper.  ok djm@
---
 auth-rhosts.c | 4 +---
 configure.ac  | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/auth-rhosts.c b/auth-rhosts.c
index d5d2c7a12..031186f24 100644
--- a/auth-rhosts.c
+++ b/auth-rhosts.c
@@ -21,9 +21,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
-#ifdef HAVE_NETGROUP_H
-# include <netgroup.h>
-#endif
+#include <netgroup.h>
 #include <pwd.h>
 #include <stdio.h>
 #include <string.h>
diff --git a/configure.ac b/configure.ac
index 98e472d8a..b174f5cc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -477,7 +477,6 @@ AC_CHECK_HEADERS([ \
 	ndir.h \
 	net/if_tun.h \
 	netdb.h \
-	netgroup.h \
 	pam/pam_appl.h \
 	pty.h \
 	readpassphrase.h \
@@ -533,6 +532,7 @@ AC_CHECK_HEADERS([ \
     ifaddrs.h \
     libgen.h \
     paths.h \
+    netgroup.h \
     poll.h \
     stdint.h \
     sys/stat.h \

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list