wscript: drop checks for setnetgrent/endnetgrent/getnetgrent
authorBjörn Jacke <bjacke@samba.org>
Wed, 24 Jan 2018 09:02:13 +0000 (10:02 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 21 Feb 2018 13:19:17 +0000 (14:19 +0100)
we don't use setnetgrent/endnetgrent/getnetgrent since security share passed
away.

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/password.c
source3/wscript

index edff5d9d2ecc4ecf7437e173ea4a86306c7c0025..f472bda2c70e03eddbafc22e8259198194bcdc0c 100644 (file)
 #include "auth.h"
 #include "../libcli/security/security.h"
 
-/* Fix up prototypes for OSX 10.4, where they're missing */
-#ifndef HAVE_SETNETGRENT_PROTOTYPE
-extern int setnetgrent(const char* netgroup);
-#endif
-#ifndef HAVE_GETNETGRENT_PROTOTYPE
-extern int getnetgrent(char **host, char **user, char **domain);
-#endif
-#ifndef HAVE_ENDNETGRENT_PROTOTYPE
-extern void endnetgrent(void);
-#endif
-
 enum server_allocated_state { SERVER_ALLOCATED_REQUIRED_YES,
                                SERVER_ALLOCATED_REQUIRED_NO,
                                SERVER_ALLOCATED_REQUIRED_ANY};
index 6d2d94bae872c7bbccbc70505885697ae6c76c66..2deb7ffe5d4d720df7ffcc148e880ffed0955c01 100644 (file)
@@ -592,28 +592,7 @@ msg.msg_accrightslen = sizeof(fd);
                                 headers='unistd.h sys/types.h dirent.h',
                                 define='HAVE_DIRENT_D_OFF')
 
-    conf.CHECK_FUNCS('setnetgrent getnetgrent endnetgrent')
-    if conf.CHECK_CFLAGS('-Werror-implicit-function-declaration'):
-        netgrent_cflags = '-Werror-implicit-function-declaration'
-    else:
-        netgrent_cflags = ''
-    conf.CHECK_CODE('setnetgrent("foo")', 'HAVE_SETNETGRENT_PROTOTYPE',
-                    msg="Checking for setnetgrent prototype",
-                    headers='netdb.h netgroup.h',
-                    cflags=netgrent_cflags)
-    conf.CHECK_CODE('getnetgrent', 'HAVE_GETNETGRENT_PROTOTYPE',
-                    msg="Checking for getnetgrent prototype",
-                    headers='netdb.h netgroup.h',
-                    cflags=netgrent_cflags)
-    conf.CHECK_CODE('endnetgrent', 'HAVE_ENDNETGRENT_PROTOTYPE',
-                    msg="Checking for endnetgrent prototype",
-                    headers='netdb.h netgroup.h',
-                    cflags=netgrent_cflags)
-
-    if (conf.CONFIG_SET('HAVE_YP_GET_DEFAULT_DOMAIN') and
-        conf.CONFIG_SET('HAVE_SETNETGRENT') and
-        conf.CONFIG_SET('HAVE_ENDNETGRENT') and
-        conf.CONFIG_SET('HAVE_GETNETGRENT')):
+    if (conf.CONFIG_SET('HAVE_YP_GET_DEFAULT_DOMAIN')):
            conf.DEFINE('HAVE_NETGROUP', '1')
 
     # Look for CUPS