summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-26 20:14:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:11 -0500
commit28e2069d1f066f20b376d911d6ed582a76c4a713 (patch)
tree02c77d5f5e4104287c8becf1ff7531c99079f804 /source3/param
parente7d6c7b1514fe8f4b6b9748b4d6f43e7c9cd1aa1 (diff)
downloadsamba-28e2069d1f066f20b376d911d6ed582a76c4a713.tar.gz
samba-28e2069d1f066f20b376d911d6ed582a76c4a713.tar.bz2
samba-28e2069d1f066f20b376d911d6ed582a76c4a713.zip
r21547: Fix from Michael Adam <ma@sernet.de>: Refuse registry shares without path.
Thanks, Volker (This used to be commit e795865d58472498097edc3fb68438ed08c38d8d)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 8849d2dea7..b90b53c16b 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2157,7 +2157,6 @@ static int getservicebyname(const char *pszServiceName,
service * pserviceDest);
static void copy_service(service * pserviceDest,
service * pserviceSource, BOOL *pcopymapDest);
-static BOOL service_ok(int iService);
static BOOL do_parameter(const char *pszParmName, const char *pszParmValue);
static BOOL do_section(const char *pszSectionName);
static void init_copymap(service * pservice);
@@ -2977,7 +2976,7 @@ Check a service for consistency. Return False if the service is in any way
incomplete or faulty, else True.
***************************************************************************/
-static BOOL service_ok(int iService)
+BOOL service_ok(int iService)
{
BOOL bRetval;
@@ -3010,7 +3009,7 @@ static BOOL service_ok(int iService)
ServicePtrs[iService]->bAvailable = False;
}
- /* If a service is flagged unavailable, log the fact at level 0. */
+ /* 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));