summaryrefslogtreecommitdiffstats
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-03-21 09:34:18 +1300
committerMichael Adam <obnox@samba.org>2014-07-31 08:17:11 +0200
commita1d2e52110f0de0a3693312ca49412a7be425e4d (patch)
tree4bf06240297a52c82a6fab83e6a3d6170d3fa9b1 /source3/param/loadparm.c
parentbc46178831e4bc748862254a6f994ea14d82a877 (diff)
downloadsamba-a1d2e52110f0de0a3693312ca49412a7be425e4d.tar.gz
samba-a1d2e52110f0de0a3693312ca49412a7be425e4d.tar.xz
samba-a1d2e52110f0de0a3693312ca49412a7be425e4d.zip
param: remove unused service_ok function
Change-Id: I0736a3b9b73aa80f529327ec70e856dd7fc008c6 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 48808779f2..13ab5d0522 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2007,52 +2007,6 @@ struct loadparm_service *lp_default_loadparm_service()
return &sDefault;
}
-/***************************************************************************
-Check a service for consistency. Return false if the service is in any way
-incomplete or faulty, else true.
-***************************************************************************/
-
-bool service_ok(int iService)
-{
- bool bRetval;
-
- bRetval = true;
- if (ServicePtrs[iService]->szService[0] == '\0') {
- DEBUG(0, ("The following message indicates an internal error:\n"));
- DEBUG(0, ("No service name in service entry.\n"));
- bRetval = false;
- }
-
- /* The [printers] entry MUST be printable. I'm all for flexibility, but */
- /* I can't see why you'd want a non-printable printer service... */
- if (strwicmp(ServicePtrs[iService]->szService, PRINTERS_NAME) == 0) {
- if (!ServicePtrs[iService]->printable) {
- DEBUG(0, ("WARNING: [%s] service MUST be printable!\n",
- ServicePtrs[iService]->szService));
- ServicePtrs[iService]->printable = true;
- }
- /* [printers] service must also be non-browsable. */
- if (ServicePtrs[iService]->browseable)
- ServicePtrs[iService]->browseable = false;
- }
-
- if (ServicePtrs[iService]->path[0] == '\0' &&
- strwicmp(ServicePtrs[iService]->szService, HOMES_NAME) != 0 &&
- ServicePtrs[iService]->msdfs_proxy[0] == '\0'
- ) {
- DEBUG(0, ("WARNING: No path in service %s - making it unavailable!\n",
- ServicePtrs[iService]->szService));
- ServicePtrs[iService]->bAvailable = false;
- }
-
- /* If a service is flagged unavailable, log the fact at level 1. */
- if (!ServicePtrs[iService]->bAvailable)
- DEBUG(1, ("NOTE: Service %s is flagged unavailable.\n",
- ServicePtrs[iService]->szService));
-
- return (bRetval);
-}
-
static struct smbconf_ctx *lp_smbconf_ctx(void)
{
sbcErr err;