summaryrefslogtreecommitdiffstats
path: root/source/lib/replace/replace.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-10 15:57:59 +0000
committerStefan Metzmacher <metze@samba.org>2007-04-10 15:57:59 +0000
commita1c0b89405d44917f01aa5ed3dbc9e0c4cd7278a (patch)
tree4f6ddaa57089fcafb92d21cf87c92bf4b5839f5f /source/lib/replace/replace.c
parenta0732f88fd98164c08f6f119fa5a107e473f038d (diff)
downloadsamba-a1c0b89405d44917f01aa5ed3dbc9e0c4cd7278a.tar.gz
samba-a1c0b89405d44917f01aa5ed3dbc9e0c4cd7278a.tar.xz
samba-a1c0b89405d44917f01aa5ed3dbc9e0c4cd7278a.zip
r22150: remove netgr functions from libreplace they're not used
in samba4 currently and samba3 has explicit configure checks for them. should fix bug #4496 metze
Diffstat (limited to 'source/lib/replace/replace.c')
-rw-r--r--source/lib/replace/replace.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/source/lib/replace/replace.c b/source/lib/replace/replace.c
index 9e6c75bd358..8310d66d9e5 100644
--- a/source/lib/replace/replace.c
+++ b/source/lib/replace/replace.c
@@ -154,33 +154,6 @@ time_t rep_mktime(struct tm *t)
#endif /* !HAVE_MKTIME */
-#ifndef HAVE_INNETGR
-#if defined(HAVE_SETNETGRENT) && defined(HAVE_GETNETGRENT) && defined(HAVE_ENDNETGRENT)
-/*
- * Search for a match in a netgroup. This replaces it on broken systems.
- */
-int rep_innetgr(const char *group, const char *host, const char *user,
- const char *dom)
-{
- char *hst, *usr, *dm;
-
- setnetgrent(group);
- while (getnetgrent(&hst, &usr, &dm)) {
- if (((host == 0) || (hst == 0) || !strcmp(host, hst)) &&
- ((user == 0) || (usr == 0) || !strcmp(user, usr)) &&
- ((dom == 0) || (dm == 0) || !strcmp(dom, dm))) {
- endnetgrent();
- return (1);
- }
- }
- endnetgrent();
- return (0);
-}
-#endif /* HAVE_SETNETGRENT HAVE_GETNETGRENT HAVE_ENDNETGRENT */
-#endif /* HAVE_INNETGR */
-
-
-
#ifndef HAVE_INITGROUPS
/****************************************************************************
some systems don't have an initgroups call