summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-29 19:31:03 +0000
committerJeremy Allison <jra@samba.org>1998-11-29 19:31:03 +0000
commitca1be437c23133830c2ba9cf36da0de20427243f (patch)
tree3cc095fc370d3a1eb01db31c94178dedc19bc67e /source/smbd
parentb30b94ad9af9120a4083579fe1f64dd25efd80f1 (diff)
downloadsamba-ca1be437c23133830c2ba9cf36da0de20427243f.tar.gz
samba-ca1be437c23133830c2ba9cf36da0de20427243f.tar.xz
samba-ca1be437c23133830c2ba9cf36da0de20427243f.zip
Ensure service is not "..". Sync up with HEAD.
Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 10e07b03c29..aa899faea2f 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -146,7 +146,9 @@ int find_service(char *service)
if (iService < 0)
{
char *pdefservice = lp_defaultservice();
- if (pdefservice && *pdefservice && !strequal(pdefservice,service))
+ if (pdefservice && *pdefservice &&
+ !strequal(pdefservice,service) &&
+ !strstr(service,".."))
{
/*
* We need to do a local copy here as lp_defaultservice()